mirror of
https://gitlab.com/comunic/comunicapiv2
synced 2024-11-24 06:19:22 +00:00
21 lines
413 B
TypeScript
21 lines
413 B
TypeScript
|
import { RequestHandler } from "../entities/RequestHandler";
|
||
|
import { GroupsHelper } from "../helpers/GroupsHelper";
|
||
|
|
||
|
/**
|
||
|
* Groups API controller
|
||
|
*
|
||
|
* @author Pierre HUBERT
|
||
|
*/
|
||
|
|
||
|
export class GroupsController {
|
||
|
|
||
|
/**
|
||
|
* Get the list of groups of the user
|
||
|
*
|
||
|
* @param h Request handler
|
||
|
*/
|
||
|
public static async GetListUser(h: RequestHandler) {
|
||
|
h.send(await GroupsHelper.GetListUser(h.getUserId()));
|
||
|
}
|
||
|
|
||
|
}
|