mirror of
https://github.com/immich-app/immich.git
synced 2025-12-26 09:14:58 +03:00
17 lines
341 B
TypeScript
17 lines
341 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: 'Shared Links'
|
|
}
|
|
};
|
|
}) satisfies PageServerLoad;
|