refactor external orders

This commit is contained in:
Matthias Hochmeister
2026-03-25 14:26:41 +01:00
parent 561334791b
commit 5add6590e5
10 changed files with 740 additions and 259 deletions

View File

@@ -17,6 +17,20 @@ router.get(
bestellungController.listVendors.bind(bestellungController)
);
router.get(
'/vendors/:id',
authenticate,
requirePermission('bestellungen:view'),
bestellungController.getVendor.bind(bestellungController)
);
router.get(
'/vendors/:id/orders',
authenticate,
requirePermission('bestellungen:view'),
bestellungController.getVendorOrders.bind(bestellungController)
);
router.post(
'/vendors',
authenticate,