mirror of
https://github.com/detleph/server.git
synced 2026-09-09 23:44:51 +02:00
patched requireLeaderOfTeam usecases
This commit is contained in:
@@ -4,17 +4,10 @@ import { requireConfiguredAuthentication } from "../Middleware/auth/auth";
|
||||
|
||||
const router = Express.Router();
|
||||
|
||||
//TO DO: maybe transfer getRolesForTeam to team router -> Seconded
|
||||
router.get<"team/:teamPid/", { teamPid: string }>(
|
||||
"team/:teamPid/",
|
||||
requireConfiguredAuthentication({ optional: false, type: { admin: true, teamleader: true } }),
|
||||
getRolesForTeam
|
||||
);
|
||||
|
||||
router.put<"/:pid/participant", { pid: string }>(
|
||||
"/:pid/participant",
|
||||
requireConfiguredAuthentication({ optional: false, type: { admin: true, teamleader: true } }),
|
||||
assignParticipantToRole
|
||||
);
|
||||
|
||||
export default router;
|
||||
export default router;
|
||||
Reference in New Issue
Block a user