mirror of
https://github.com/detleph/server.git
synced 2026-09-09 07:56:18 +02:00
Add router to delete groups
+ Add route to delete organisations
This commit is contained in:
@@ -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 }>(
|
||||
|
||||
Reference in New Issue
Block a user