lora-studio / src /hooks.server.ts
enzostvs's picture
enzostvs HF staff
change updated models routes
b0122ad
raw
history blame
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);
}