Files
tanabata/frontend/src/routes/+page.ts
T
H1K0 bcbe0b5e8c fix(frontend): redirect root route to /files
The root route rendered the default SvelteKit placeholder page. Redirect /
to /files; the layout guard still sends unauthenticated users to /login.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-10 14:40:47 +03:00

8 lines
238 B
TypeScript

import { redirect } from '@sveltejs/kit';
// The app has no content at the root; send users to the files view (the layout
// guard redirects to /login first when unauthenticated).
export const load = () => {
redirect(307, '/files');
};