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:
Torsten Schulz (local)
2026-03-27 09:24:05 +01:00
parent 085333db29
commit 6563ca23c7

View File

@@ -22,10 +22,10 @@ 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/:branchId?', falukantController.getStock);
router.post('/stock', falukantController.createStock);
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', falukantController.sellProduct);
router.post('/moneyhistory', falukantController.moneyHistory);