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

// Login route with rate limiting
router.post('/login', authLimiter, authController.login);

// Logout route
router.post('/logout', authController.logout);

// Check authentication status
router.get('/check', authController.check);

module.exports = router;