Add function to update an organisation

+ Extract basicOrganisation and detailedOrganiation select types
This commit is contained in:
Stephan
2022-04-26 16:04:26 +02:00
parent 831017e7c2
commit 12034fa32a
2 changed files with 81 additions and 4 deletions
+2
View File
@@ -5,6 +5,7 @@ import {
getAllOrganisations,
getAllOrganisationsWithParam,
getOrganisation,
updateOrganisation,
} from "../Controllers/organisation.controller";
import { requireAuthentication } from "../Middleware/auth/auth";
@@ -12,6 +13,7 @@ const router = express.Router();
router.get("/", getAllOrganisations);
router.get("/:pid", getOrganisation);
router.put<"/:pid", { pid: string }>("/:pid", requireAuthentication, updateOrganisation);
eventRouter.get("/:eventPid/organisations", getAllOrganisationsWithParam);
eventRouter.post<"/:eventPid/organisations", { eventPid: string }>(