chore: svelte-kit-2 (#6103)
* chore: upgrade svelte * chore: type imports * chore: types
This commit is contained in:
@@ -10,13 +10,13 @@ export const csr = true;
|
||||
export const load = (async () => {
|
||||
const authenticated = await isLoggedIn();
|
||||
if (authenticated) {
|
||||
throw redirect(302, AppRoute.PHOTOS);
|
||||
redirect(302, AppRoute.PHOTOS);
|
||||
}
|
||||
|
||||
const { data } = await api.serverInfoApi.getServerConfig();
|
||||
if (data.isInitialized) {
|
||||
// Redirect to login page if there exists an admin account (i.e. server is initialized)
|
||||
throw redirect(302, AppRoute.AUTH_LOGIN);
|
||||
redirect(302, AppRoute.AUTH_LOGIN);
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user