Fix routes, add getRole controller

This commit is contained in:
Stephan
2022-06-09 16:23:54 +02:00
committed by La_Felx
parent 87f5fa2e91
commit 718c040517
5 changed files with 68 additions and 15 deletions
+1 -1
View File
@@ -81,7 +81,7 @@ export const getAllParticipants = async (req: Request<{}, {}, {}, { teamPid?: st
return _getAllParticipants(res, auth, req.query.teamPid);
};
export const getAllDisciplinesParams = async (req: Request<{ teamPid: string }>, res: Response) => {
export const getAllParticipantsParams = async (req: Request<{ teamPid: string }>, res: Response) => {
const auth = req.auth || req.teamleader;
if (!auth) {