import * as systemHandlers from '../../controllers/system/system.controller.js';
export function registerSystemRoutes(router, apiController) {
    // System Administration Routes
    router.get('/system/health', (req, res) => systemHandlers.getSystemHealth.call(apiController, req, res));
    router.get('/system/claude-status', (req, res) => systemHandlers.getClaudeStatus.call(apiController, req, res));
    router.get('/system/metrics', (req, res) => systemHandlers.getSystemMetrics.call(apiController, req, res));
    router.get('/system/config', (req, res) => systemHandlers.getSystemConfiguration.call(apiController, req, res));
    router.patch('/system/config', (req, res) => systemHandlers.updateSystemConfiguration.call(apiController, req, res));
    router.post('/system/config/default', (req, res) => systemHandlers.createDefaultConfig.call(apiController, req, res));
    router.get('/system/logs', (req, res) => systemHandlers.getSystemLogs.call(apiController, req, res));
    router.get('/system/alerts', (req, res) => systemHandlers.getAlerts.call(apiController, req, res));
    router.patch('/system/alerts/:conditionId', (req, res) => systemHandlers.updateAlertCondition.call(apiController, req, res));
    // Server restart
    router.post('/system/restart', (req, res) => systemHandlers.restartServer.call(apiController, req, res));
    // API Health within /api scope
    router.get('/health', (req, res) => systemHandlers.healthCheck.call(apiController, req, res));
    // Local IP address for QR code generation (mobile access)
    router.get('/system/local-ip', (req, res) => systemHandlers.getLocalIpAddress.call(apiController, req, res));
    // Directory browsing for folder selection (used by project creator)
    router.get('/directories', (req, res) => systemHandlers.browseDirectories.call(apiController, req, res));
    // SOP query endpoint for agents to retrieve relevant procedures
    router.post('/system/sops/query', (req, res) => systemHandlers.querySOPs.call(apiController, req, res));
}
//# sourceMappingURL=system.routes.js.map