Add controller and routes for groups

This commit is contained in:
Stephan
2022-04-26 16:04:26 +02:00
parent 8aa4e5ef16
commit 0c65aec96c
3 changed files with 107 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
import express from "express";
import { getAllGroups, getAllGroupsWithParam, getGroup } from "../Controllers/group.controllers";
import organisationRouter from "./organisation.routes";
const router = express.Router();
router.get("/", getAllGroups);
router.get("/:pid", getGroup);
organisationRouter.get("/:organisationPid/groups", getAllGroupsWithParam);
export default router;