mirror of
https://github.com/Art051/immich.git
synced 2025-08-11 19:29:00 +00:00
16 lines
347 B
TypeScript
16 lines
347 B
TypeScript
import { authenticate } from '$lib/utils/auth';
|
|
import { getAllPeople } from '@immich/sdk';
|
|
import type { PageLoad } from './$types';
|
|
|
|
export const load = (async () => {
|
|
await authenticate();
|
|
|
|
const people = await getAllPeople({ withHidden: true });
|
|
return {
|
|
people,
|
|
meta: {
|
|
title: 'People',
|
|
},
|
|
};
|
|
}) satisfies PageLoad;
|