Spaces:
Runtime error
Runtime error
Download src/hooks.server.ts from enzostvs/lora-studio: direct link, hf CLI and curl.
- Browser
- Download file 350 Bytes
-
https://huggingface.co/spaces/enzostvs/lora-studio/resolve/main/src/hooks.server.ts
- Command line
-
hf download hf://spaces/enzostvs/lora-studio/src/hooks.server.ts
-
curl -L -o hooks.server.ts https://huggingface.co/spaces/enzostvs/lora-studio/resolve/main/src/hooks.server.ts
350 Bytes
| /** @type {import('@sveltejs/kit').HandleServerError} */ | |
| export async function handle({ event, resolve }) { | |
| const request = event.request; | |
| const url = new URL(request.url); | |
| if (url.pathname === "/") { | |
| return new Response(null, { | |
| status: 302, | |
| headers: { | |
| location: "/models" | |
| } | |
| }); | |
| } | |
| return resolve(event); | |
| } |