const express = require('express');
const { protect } = require('../middleware/auth');

const router = express.Router();

// A simple protected route for testing auth-protected access.
router.get('/', protect, (req, res) => {
  res.json({
    message: 'Protected route accessed successfully',
    user: req.user,
  });
});

module.exports = router;
