mirror of
https://github.com/immich-app/immich.git
synced 2026-05-25 09:02:31 -04:00
9 lines
322 B
TypeScript
9 lines
322 B
TypeScript
import { systemConfigManager } from '$lib/managers/system-config-manager.svelte';
|
|
import { authenticate } from '$lib/utils/auth';
|
|
import type { LayoutLoad } from './$types';
|
|
|
|
export const load = (async ({ url }) => {
|
|
await authenticate(url, { admin: true });
|
|
await systemConfigManager.init();
|
|
}) satisfies LayoutLoad;
|