mirror of
https://github.com/detleph/server.git
synced 2026-09-07 16:06:18 +02:00
Add function to update an organisation
+ Extract basicOrganisation and detailedOrganiation select types
This commit is contained in:
@@ -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 }>(
|
||||
|
||||
Reference in New Issue
Block a user