mirror of
https://github.com/immich-app/immich.git
synced 2026-05-27 10:02:31 -04:00
fix(web): redirect to login (#25254)
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
import { systemConfigManager } from '$lib/managers/system-config-manager.svelte';
|
||||
import { authenticate } from '$lib/utils/auth';
|
||||
import type { LayoutLoad } from './$types';
|
||||
|
||||
export const load = (async () => {
|
||||
export const load = (async ({ url }) => {
|
||||
await authenticate(url, { admin: true });
|
||||
await systemConfigManager.init();
|
||||
}) satisfies LayoutLoad;
|
||||
|
||||
Reference in New Issue
Block a user