8fd94211c0
* refactor(web): use new open api client * refactor: remove activity api * refactor: trash, oauth, and partner apis * refactor: job api * refactor: face, library, system config * refactor: user api * refactor: album api
16 lines
329 B
TypeScript
16 lines
329 B
TypeScript
import { authenticate } from '$lib/utils/auth';
|
|
import { getAllAlbums } from '@immich/sdk';
|
|
import type { PageLoad } from './$types';
|
|
|
|
export const load = (async () => {
|
|
await authenticate();
|
|
const albums = await getAllAlbums({});
|
|
|
|
return {
|
|
albums,
|
|
meta: {
|
|
title: 'Albums',
|
|
},
|
|
};
|
|
}) satisfies PageLoad;
|