mirror of
https://github.com/detleph/server.git
synced 2026-09-09 16:06:21 +02:00
small fixes
This commit is contained in:
@@ -7,15 +7,13 @@ const router = Express.Router();
|
||||
//TO DO: maybe transfer getRolesForTeam to team router -> Seconded
|
||||
router.get<"team/:teamPid/", { teamPid: string }>(
|
||||
"team/:teamPid/",
|
||||
requireAuthentication,
|
||||
requireConfiguredAuthentication({ optional: true, type: { admin: true, teamleader: true } }),
|
||||
requireConfiguredAuthentication({ optional: false, type: { admin: true, teamleader: true } }),
|
||||
getRolesForTeam
|
||||
);
|
||||
|
||||
router.put<"/:pid/participant", { pid: string }>(
|
||||
"/:pid/participant",
|
||||
requireAuthentication,
|
||||
requireConfiguredAuthentication({ optional: true, type: { admin: true, teamleader: true } }),
|
||||
requireConfiguredAuthentication({ optional: false, type: { admin: true, teamleader: true } }),
|
||||
assignParticipantToRole
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user