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

// Simple protected endpoint that returns the authenticated user
router.get('/', protect, (req, res) => {
  res.json({ message: 'This is a protected route', user: req.user });
});

module.exports = router;
