undo skipped tests, only allow API calls for admin-views, refactor viewer-page to use page.server

This commit is contained in:
2025-11-03 14:21:08 +01:00
parent a9e3d8264c
commit 3c16bc89e5
9 changed files with 61 additions and 38 deletions

View File

@@ -1,7 +1,10 @@
import { getVorgaenge } from '$lib/server/vorgangService';
import { json } from '@sveltejs/kit';
export async function GET({ locals }) {
if (!locals.user) {
return json({ error: 'Unauthorized' }, { status: 401 });
}
const vorgaenge = getVorgaenge();
return new Response(JSON.stringify(vorgaenge), {