fix(router): update stock and inventory routes to support optional branchId parameter
- Modified the stock and inventory routes to allow an optional branchId parameter, improving flexibility in API requests.
This commit is contained in:
@@ -22,10 +22,10 @@ router.post('/production', falukantController.createProduction);
|
|||||||
router.get('/production/:branchId', falukantController.getProduction);
|
router.get('/production/:branchId', falukantController.getProduction);
|
||||||
router.get('/stocktypes', falukantController.getStockTypes);
|
router.get('/stocktypes', falukantController.getStockTypes);
|
||||||
router.get('/stockoverview', falukantController.getStockOverview);
|
router.get('/stockoverview', falukantController.getStockOverview);
|
||||||
router.get('/stock/?:branchId', falukantController.getStock);
|
router.get('/stock/:branchId?', falukantController.getStock);
|
||||||
router.post('/stock', falukantController.createStock);
|
router.post('/stock', falukantController.createStock);
|
||||||
router.get('/products', falukantController.getProducts);
|
router.get('/products', falukantController.getProducts);
|
||||||
router.get('/inventory/?:branchId', falukantController.getInventory);
|
router.get('/inventory/:branchId?', falukantController.getInventory);
|
||||||
router.post('/sell/all', falukantController.sellAllProducts);
|
router.post('/sell/all', falukantController.sellAllProducts);
|
||||||
router.post('/sell', falukantController.sellProduct);
|
router.post('/sell', falukantController.sellProduct);
|
||||||
router.post('/moneyhistory', falukantController.moneyHistory);
|
router.post('/moneyhistory', falukantController.moneyHistory);
|
||||||
|
|||||||
Reference in New Issue
Block a user