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:
Torsten Schulz (local)
2026-03-27 09:39:51 +01:00
parent 6563ca23c7
commit 1878b2a8c7

View File

@@ -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);