const express = require('express');
const router = express.Router();
const menuController = require('../controllers/menuController');

// Menu routes
router.get('/', menuController.getAllMenus);
router.get('/stats', menuController.getMenuStats);
router.get('/category/:categoryId', menuController.getMenusByCategory);
router.get('/:id', menuController.getMenuById);
router.post('/', menuController.createMenu);
router.put('/:id', menuController.updateMenu);
router.patch('/:id/availability', menuController.updateMenuAvailability);
router.delete('/:id', menuController.deleteMenu);

module.exports = router;
