mirror of
https://github.com/documenso/documenso.git
synced 2025-11-14 00:32:43 +10:00
12 lines
240 B
TypeScript
12 lines
240 B
TypeScript
import { redirect } from 'react-router';
|
|
|
|
import type { Route } from './+types/_index';
|
|
|
|
export function loader({ context }: Route.LoaderArgs) {
|
|
if (context.session) {
|
|
throw redirect('/documents');
|
|
}
|
|
|
|
throw redirect('/signin');
|
|
}
|