// Tarife haben eigene Rechte (`tariffs:*`). // // Bis 09/2026 gateten diese Routen auf `providers:*`, waehrend `tariffs:*` // im Katalog stand und nichts bewachte - man konnte "Tarife bearbeiten" // anhaken, ohne dass es etwas bewirkte, und wer Anbieter pflegen durfte, // durfte automatisch auch alle Tarife aendern. import { Router } from 'express'; import * as tariffController from '../controllers/tariff.controller.js'; import { authenticate, requirePermission } from '../middleware/auth.js'; const router = Router(); // Standalone tariff routes (for update/delete by tariff id) router.get('/:id', authenticate, requirePermission('tariffs:read'), tariffController.getTariff); router.put('/:id', authenticate, requirePermission('tariffs:update'), tariffController.updateTariff); router.delete('/:id', authenticate, requirePermission('tariffs:delete'), tariffController.deleteTariff); export default router;