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

// All dashboard routes require authentication
router.use(requireAuth);

// Serve the dashboard page
router.get('/', (req, res) => {
    res.sendFile('dashboard.html', { root: './app/public' });
});

module.exports = router;