mirror of
https://github.com/documenso/documenso.git
synced 2025-11-25 22:21:31 +10:00
12 lines
248 B
TypeScript
12 lines
248 B
TypeScript
import { redirect } from 'react-router';
|
|
|
|
import type { Route } from './+types/_index';
|
|
|
|
export async function loader({ context }: Route.LoaderArgs) {
|
|
if (context.session) {
|
|
return redirect('/documents');
|
|
}
|
|
|
|
return redirect('/signin');
|
|
}
|