import express from 'express';
import { SystemController } from '../controllers/SystemController.js';
import { authenticateToken } from '../middlewares/authMiddleware.js';

const router = express.Router();

router.get('/health', SystemController.checkHealth);
router.get('/debug/db-summary', authenticateToken, SystemController.getDbSummary);
router.get('/settings', authenticateToken, SystemController.getSettings);
router.put('/settings/:key', authenticateToken, SystemController.updateSetting);

export default router;
