mirror of
https://github.com/detleph/server.git
synced 2026-09-04 00:26:03 +02:00
13 lines
454 B
TypeScript
13 lines
454 B
TypeScript
import Express from "express";
|
|
import { assignParticipantToRole, getRolesForTeam } from "../Controllers/role.controller";
|
|
import { requireConfiguredAuthentication } from "../Middleware/auth/auth";
|
|
|
|
const router = Express.Router();
|
|
|
|
router.put<"/:pid/participant", { pid: string }>(
|
|
"/:pid/participant",
|
|
requireConfiguredAuthentication({ optional: false, type: { admin: true, teamleader: true } }),
|
|
assignParticipantToRole
|
|
);
|
|
|
|
export default router; |