c602eaea4a
* use svelte store * fix: websocket error when not authenticated * more routes
19 lines
383 B
TypeScript
19 lines
383 B
TypeScript
import { authenticate } from '$lib/utils/auth';
|
|
import { api } from '@api';
|
|
import type { PageLoad } from './$types';
|
|
|
|
export const load = (async () => {
|
|
await authenticate({ admin: true });
|
|
const {
|
|
data: { orphans, extras },
|
|
} = await api.auditApi.getAuditFiles();
|
|
|
|
return {
|
|
orphans,
|
|
extras,
|
|
meta: {
|
|
title: 'Repair',
|
|
},
|
|
};
|
|
}) satisfies PageLoad;
|