feat: added material endpoints
This commit is contained in:
19
src/controller/material.router.js
Normal file
19
src/controller/material.router.js
Normal file
@@ -0,0 +1,19 @@
|
||||
const router = require("express").Router();
|
||||
const controller = require("./material.controller");
|
||||
|
||||
/**
|
||||
* @route /material/:id
|
||||
*/
|
||||
router.get("/:id", controller.getMaterialByID);
|
||||
|
||||
/**
|
||||
* @route /material/
|
||||
*/
|
||||
router.post("/", controller.createMaterial);
|
||||
|
||||
/**
|
||||
* @route /material/
|
||||
*/
|
||||
router.patch("/:id", controller.updateMaterialByID);
|
||||
|
||||
module.exports = router;
|
||||
Reference in New Issue
Block a user