mirror of
https://github.com/immich-app/immich.git
synced 2025-12-21 01:11:16 +03:00
17 lines
429 B
TypeScript
17 lines
429 B
TypeScript
|
|
import { authenticate, requestServerInfo } from '$lib/utils/auth';
|
||
|
|
import { getAllUsers } from '@immich/sdk';
|
||
|
|
import type { PageLoad } from './$types';
|
||
|
|
|
||
|
|
export const load = (async () => {
|
||
|
|
await authenticate({ admin: true });
|
||
|
|
await requestServerInfo();
|
||
|
|
const allUsers = await getAllUsers({ isAll: false });
|
||
|
|
|
||
|
|
return {
|
||
|
|
allUsers,
|
||
|
|
meta: {
|
||
|
|
title: 'External Library Management',
|
||
|
|
},
|
||
|
|
};
|
||
|
|
}) satisfies PageLoad;
|