const express = require('express');
const router = express.Router();
const { login, register, logout, getCurrentUser } = require('../controllers/authController');

// Login route
router.post('/login', login);

// Register route
router.post('/register', register);

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

// Get current user
router.get('/me', getCurrentUser);

module.exports = router;