// routes/superAdminRoutes.js

const express = require('express');
const router = express.Router();
const superAdminController = require('../controllers/superAdminController');
const { auth, authorize } = require('../middleware/auth');

// Protect all routes in this file for Super Admins only
router.use(auth, authorize('super_admin'));

router.get('/dashboard/stats', superAdminController.getPlatformStats);

module.exports = router;