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

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

module.exports = router;