protocol base data

This commit is contained in:
Julian Krauser 2024-10-04 12:47:13 +02:00
parent 5c4e521bd8
commit edc35f2f87
7 changed files with 73 additions and 1 deletions

View file

@ -1,5 +1,5 @@
import express, { Request, Response } from "express";
import { getAllProtocols } from "../../controller/admin/protocolController";
import { getAllProtocols, getProtocolById } from "../../controller/admin/protocolController";
var router = express.Router({ mergeParams: true });
@ -7,4 +7,8 @@ router.get("/", async (req: Request, res: Response) => {
await getAllProtocols(req, res);
});
router.get("/:id", async (req: Request, res: Response) => {
await getProtocolById(req, res);
});
export default router;