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

// GET /api/protected - simple protected endpoint
router.get('/', protect, (req, res) => {
  res.json({ message: 'Protected content', user: req.user });
});

module.exports = router;
