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:
@@ -1,2 +1 @@
|
||||
<h1>Welcome to SvelteKit</h1>
|
||||
<p>Visit <a href="https://svelte.dev/docs/kit">svelte.dev/docs/kit</a> to read the documentation</p>
|
||||
<!-- Root route redirects to /files in +page.ts; nothing is rendered here. -->
|
||||
|
||||
@@ -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');
|
||||
};
|
||||
Reference in New Issue
Block a user