mirror of
https://github.com/documenso/documenso.git
synced 2026-07-24 08:54:20 +10:00
14 lines
328 B
TypeScript
14 lines
328 B
TypeScript
import { redirect } from 'react-router';
|
|
|
|
import { templates } from '../lib/templates';
|
|
|
|
/**
|
|
* The index has no UI of its own — redirect to the first template so the
|
|
* preview always opens on something.
|
|
*/
|
|
export const loader = () => {
|
|
const firstSlug = Object.keys(templates)[0];
|
|
|
|
return redirect(`/${firstSlug}`);
|
|
};
|