feat: added material endpoints

This commit is contained in:
Sathishkumar Krishnan
2021-12-29 05:46:34 +05:30
parent 3407c252b9
commit cd00c9b7bb
3 changed files with 150 additions and 15 deletions

View 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;