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

const router = express.Router();

router.get('/', protect, (req, res) => {
  res.json({ message: 'Protected route', user: req.user });
});

module.exports = router;
