mirror of
https://github.com/detleph/server.git
synced 2026-09-04 08:36:06 +02:00
added getRolesForTeam to role.routes
This commit is contained in:
@@ -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)
|
||||||
Reference in New Issue
Block a user