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>
This commit is contained in:
2026-06-10 14:40:47 +03:00
parent a360cab2fc
commit bcbe0b5e8c
2 changed files with 8 additions and 2 deletions
+1 -2
View File
@@ -1,2 +1 @@
<h1>Welcome to SvelteKit</h1> <!-- Root route redirects to /files in +page.ts; nothing is rendered here. -->
<p>Visit <a href="https://svelte.dev/docs/kit">svelte.dev/docs/kit</a> to read the documentation</p>
+7
View File
@@ -0,0 +1,7 @@
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');
};