mirror of
https://github.com/detleph/server.git
synced 2026-09-09 16:06:21 +02:00
adding team router/cont and participant router
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import express from "express";
|
||||
import { requireAuthentication } from "../Middleware/auth/auth";
|
||||
import { requireTeamleaderAuthentication } from "../Middleware/auth/teamleaderAuth";
|
||||
import { register } from "../Controllers/user_auth.controller";
|
||||
|
||||
const router = express.Router();
|
||||
|
||||
router.post("/", requireAuthentication, requireTeamleaderAuthentication, register);
|
||||
|
||||
router.delete<"/:pid/", { pid: string }>("/:pid/", requireAuthentication, requireTeamleaderAuthentication, deleteTeam);
|
||||
|
||||
export default router;
|
||||
Reference in New Issue
Block a user