mirror of
https://github.com/detleph/server.git
synced 2026-09-09 16:06:21 +02:00
Improve validation and error handling
+ Check code and routes + Comment code
This commit is contained in:
@@ -3,7 +3,7 @@ import { assignParticipantToRole, getRolesForTeam } from "../Controllers/role.co
|
||||
|
||||
const router = Express.Router();
|
||||
|
||||
//TO DO: maybe transfer getRolesForTeam to team router
|
||||
//TO DO: maybe transfer getRolesForTeam to team router -> Seconded
|
||||
router.get<"team/:teamPid/", { teamPid: string }>("team/:teamPid/", getRolesForTeam);
|
||||
|
||||
router.patch<"/:pid/", { pid: string }>("/:pid/", assignParticipantToRole)
|
||||
router.put<"/:pid/participant", { pid: string }>("/:pid/participant", assignParticipantToRole);
|
||||
|
||||
Reference in New Issue
Block a user