mirror of
https://github.com/nikdoof/pocket-id.git
synced 2025-12-14 07:12:19 +00:00
10 lines
345 B
TypeScript
10 lines
345 B
TypeScript
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 };
|
|
};
|