Files
immich/web/src/routes/(user)/people/+page.ts
Jason Rasmussen d8631a00bb refactor(web) open api client (#7103)
* refactor: person api

* refactor: shared link and others
2024-02-14 08:09:49 -05:00

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;