mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +00:00
16 lines
352 B
TypeScript
16 lines
352 B
TypeScript
import { AppRoute } from '$lib/constants';
|
|
import { redirect } from '@sveltejs/kit';
|
|
import type { PageServerLoad } from './$types';
|
|
|
|
export const load = (async ({ locals: { user } }) => {
|
|
if (!user) {
|
|
throw redirect(302, AppRoute.AUTH_LOGIN);
|
|
}
|
|
|
|
return {
|
|
user,
|
|
meta: {
|
|
title: 'Memory',
|
|
},
|
|
};
|
|
}) satisfies PageServerLoad;
|