mirror of
https://github.com/detleph/server.git
synced 2026-09-07 07:56:18 +02:00
Add controller and routes for groups
This commit is contained in:
@@ -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;
|
||||
Reference in New Issue
Block a user