mirror of
https://github.com/immich-app/immich.git
synced 2025-05-24 01:12:58 -04:00
12 lines
312 B
TypeScript
12 lines
312 B
TypeScript
import type { RequestHandler } from '@sveltejs/kit';
|
|
import { getRequest } from '../../../../lib/api';
|
|
|
|
|
|
export const get: RequestHandler = async ({ request, locals }) => {
|
|
const allUsers = await getRequest('user?isAll=true', locals.user!.accessToken)
|
|
|
|
return {
|
|
status: 200,
|
|
body: { allUsers }
|
|
};
|
|
} |