const express = require('express');
const router = express.Router();
const publicShiftsController = require('../controllers/publicShiftsController');
const { apiLimiter, publicSignupLimiter } = require('../middleware/rateLimiter');

// Public routes - no authentication required
router.get('/shifts', apiLimiter, publicShiftsController.getPublicShifts);
router.get('/shifts/:id', apiLimiter, publicShiftsController.getShiftById);
router.post('/shifts/:id/signup', publicSignupLimiter, publicShiftsController.publicSignup);

module.exports = router;
