added getRolesForTeam to role.routes

This commit is contained in:
Laurin
2022-05-28 18:36:36 +02:00
parent 58235b301e
commit 233182c0ea
+4 -1
View File
@@ -1,6 +1,9 @@
import Express from "express"; import Express from "express";
import { assignParticipantToRole } from "../Controllers/role.controller"; import { assignParticipantToRole, getRolesForTeam } from "../Controllers/role.controller";
const router = Express.Router(); const router = Express.Router();
//TO DO: maybe transfer getRolesForTeam to team router
router.get<"team/:teamPid/", { teamPid: string }>("team/:teamPid/", getRolesForTeam);
router.patch<"/:pid/", { pid: string }>("/:pid/", assignParticipantToRole) router.patch<"/:pid/", { pid: string }>("/:pid/", assignParticipantToRole)