mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
* refactor: inline warning * fix: do not use onmount * chore: remove outdated comment * wording --------- Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
16 lines
424 B
TypeScript
16 lines
424 B
TypeScript
import { authenticate, requestServerInfo } from '$lib/utils/auth';
|
|
import { api } from '@api';
|
|
import type { PageLoad } from './$types';
|
|
|
|
export const load = (async () => {
|
|
await authenticate({ admin: true });
|
|
await requestServerInfo();
|
|
const { data: allUsers } = await api.userApi.getAllUsers({ isAll: false });
|
|
|
|
return {
|
|
allUsers,
|
|
meta: {
|
|
title: 'User Management',
|
|
},
|
|
};
|
|
}) satisfies PageLoad;
|