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