protocol base data
This commit is contained in:
parent
5c4e521bd8
commit
edc35f2f87
7 changed files with 73 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue