const express = require('express');
const { authenticate, authorize } = require('../middleware/auth');
const SegmentPriceController = require('../controllers/SegmentPriceController');

const router = express.Router();

router.get('/route/:routeId', SegmentPriceController.getByRoute);
router.post('/', authenticate, authorize('admin', 'manager'), SegmentPriceController.create);

module.exports = router;
