Files
immich/web/src/routes/admin/system-settings/+page.ts
T
martin c602eaea4a feat(web): automatically update user info (#5647)
* use svelte store

* fix: websocket error when not authenticated

* more routes
2023-12-12 10:35:28 -06:00

16 lines
364 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: configs } = await api.systemConfigApi.getConfig();
return {
configs,
meta: {
title: 'System Settings',
},
};
}) satisfies PageLoad;