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

// GET /api/reservations - Get all reservations
router.get('/', reservationController.getAllReservations);

// GET /api/reservations/stats - Get reservation statistics
router.get('/stats', reservationController.getReservationStats);

// GET /api/reservations/today - Get today's reservations
router.get('/today', reservationController.getTodayReservations);

// GET /api/reservations/status/:status - Get reservations by status
router.get('/status/:status', reservationController.getReservationsByStatus);

// GET /api/reservations/:id - Get reservation by ID
router.get('/:id', reservationController.getReservationById);

// POST /api/reservations - Create new reservation
router.post('/', reservationController.createReservation);

// PUT /api/reservations/:id - Update reservation
router.put('/:id', reservationController.updateReservation);

// DELETE /api/reservations/:id - Delete reservation
router.delete('/:id', reservationController.deleteReservation);

module.exports = router;
