Add router to delete groups

+ Add route to delete organisations
This commit is contained in:
Stephan
2022-04-29 10:35:31 +02:00
parent 6fb09b9f31
commit df9b47dbfd
3 changed files with 36 additions and 3 deletions
+2
View File
@@ -2,6 +2,7 @@ import express from "express";
import eventRouter from "./event.routes";
import {
createOrganisation,
deleteOrganisation,
getAllOrganisations,
getAllOrganisationsWithParam,
getOrganisation,
@@ -14,6 +15,7 @@ const router = express.Router();
router.get("/", getAllOrganisations);
router.get("/:pid", getOrganisation);
router.put<"/:pid", { pid: string }>("/:pid", requireAuthentication, updateOrganisation);
router.delete<"/:pid", { pid: string }>("/:pid", requireAuthentication, deleteOrganisation);
eventRouter.get("/:eventPid/organisations", getAllOrganisationsWithParam);
eventRouter.post<"/:eventPid/organisations", { eventPid: string }>(