mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-03-29 10:46:38 +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 };
|
|
};
|