feat; change model names (Material -> WidgetFamily)
This commit is contained in:
24
src/controller/widgetFamily.router.js
Normal file
24
src/controller/widgetFamily.router.js
Normal file
@@ -0,0 +1,24 @@
|
||||
const router = require("express").Router();
|
||||
const controller = require("./widgetFamily.controller");
|
||||
|
||||
/**
|
||||
* @route /widgetFamily/
|
||||
*/
|
||||
router.post("/", controller.createWidgetFamily);
|
||||
|
||||
/**
|
||||
* @route /widgetFamily/
|
||||
*/
|
||||
router.patch("/:id", controller.updateWidgetFamilyByID);
|
||||
|
||||
/**
|
||||
* @route /widgetFamily/search-by-inventory
|
||||
*/
|
||||
router.get("/search-by-inventory", controller.getWidgetFamilyByInventory);
|
||||
|
||||
/**
|
||||
* @route /widgetFamily/:id
|
||||
*/
|
||||
router.get("/:id", controller.getWidgetFamilyByID);
|
||||
|
||||
module.exports = router;
|
||||
Reference in New Issue
Block a user