fix(router): refine stock and inventory routes for improved clarity
- Updated stock and inventory routes to explicitly define branchId as a required parameter, enhancing API usability and consistency in request handling.
This commit is contained in:
@@ -22,10 +22,12 @@ router.post('/production', falukantController.createProduction);
|
||||
router.get('/production/:branchId', falukantController.getProduction);
|
||||
router.get('/stocktypes', falukantController.getStockTypes);
|
||||
router.get('/stockoverview', falukantController.getStockOverview);
|
||||
router.get('/stock/:branchId?', falukantController.getStock);
|
||||
router.get('/stock', falukantController.getStock);
|
||||
router.get('/stock/:branchId', falukantController.getStock);
|
||||
router.post('/stock', falukantController.createStock);
|
||||
router.get('/products', falukantController.getProducts);
|
||||
router.get('/inventory/:branchId?', falukantController.getInventory);
|
||||
router.get('/inventory', falukantController.getInventory);
|
||||
router.get('/inventory/:branchId', falukantController.getInventory);
|
||||
router.post('/sell/all', falukantController.sellAllProducts);
|
||||
router.post('/sell', falukantController.sellProduct);
|
||||
router.post('/moneyhistory', falukantController.moneyHistory);
|
||||
|
||||
Reference in New Issue
Block a user