const express = require('express'); const router = express.Router(); const authController = require('../controllers/auth'); const { protect } = require('../middlewares/auth'); router.post('/register', authController.register); router.post('/login', authController.login); router.get('/me', protect, authController.getMe); module.exports = router;