mirror of
https://github.com/nikdoof/pocket-id.git
synced 2025-12-25 07:19:23 +00:00
feat: add user groups
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import UserGroupService from '$lib/services/user-group-service';
|
||||
import type { PageServerLoad } from './$types';
|
||||
|
||||
export const load: PageServerLoad = async ({ params, cookies }) => {
|
||||
const userGroupService = new UserGroupService(cookies.get('access_token'));
|
||||
const userGroup = await userGroupService.get(params.id);
|
||||
|
||||
return { userGroup };
|
||||
};
|
||||
Reference in New Issue
Block a user