wol-dash/src/routes/dash/+page.server.ts
axel 2ac2650f99 feat: v2 dashboard
made from headless components from BitsUI to make the app more
accessible
2025-04-16 11:36:53 +02:00

7 lines
200 B
TypeScript

import { redirect, type ServerLoad } from '@sveltejs/kit';
export const load: ServerLoad = async ({ locals: { guard } }) => {
guard.requiresAuth().orRedirects();
redirect(302, '/dash/devices');
};