mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-03-31 11:46:37 +00:00
initial commit
This commit is contained in:
8
frontend/src/routes/settings/admin/users/+page.server.ts
Normal file
8
frontend/src/routes/settings/admin/users/+page.server.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import UserService from '$lib/services/user-service';
|
||||
import type { PageServerLoad } from './$types';
|
||||
|
||||
export const load: PageServerLoad = async ({ cookies }) => {
|
||||
const userService = new UserService(cookies.get('access_token'));
|
||||
const users = await userService.list();
|
||||
return users;
|
||||
};
|
||||
Reference in New Issue
Block a user