Files
immich/web/src/routes/(user)/trash/[[photos=photos]]/[[assetId=id]]/+page.ts
T
2025-06-29 04:20:20 +08:00

16 lines
365 B
TypeScript

import { authenticate } from '$lib/utils/auth';
import { getFormatter } from '$lib/utils/i18n';
import type { PageLoad } from './$types';
export const load = (async ({ params, url }) => {
await authenticate(url);
const $t = await getFormatter();
return {
assetId: params.assetId,
meta: {
title: $t('trash'),
},
};
}) satisfies PageLoad;