import { registerMetaRoutes } from './routes/meta.js';
import { registerAuthRoutes } from './routes/auth.js';
import { registerDocumentRoutes } from './routes/documents.js';
import { registerSectionRoutes } from './routes/sections.js';
import { registerMediaRoutes } from './routes/media.js';
import { registerSystemRoutes } from './routes/system.js';
import { registerDashboardRoutes } from './routes/dashboard.js';
import { registerUserRoutes } from './routes/users.js';
import { registerFormRoutes } from './routes/forms.js';
import { registerRedirectRoutes } from './routes/redirects.js';
import { registerSeoRoutes } from './routes/seo.js';
import { registerSeoPublicRoutes } from './routes/seo-public.js';
import { registerUrlResolutionRoutes } from './routes/url-resolution.js';
import { registerFolderRoutes } from './routes/folders.js';
import { registerPreviewRoutes } from './routes/preview.js';
import { registerCollabRoutes } from './routes/collab.js';
import { registerSchedulingRoutes } from './routes/scheduling.js';
import { registerGlobalRoutes } from './routes/globals.js';
import { registerSecurityCenterRoutes } from './routes/security-center.js';
import { registerAiSettingsRoutes } from './routes/ai-settings.js';
import { registerWebhookRoutes } from './routes/webhooks.js';
import { registerPresenceRoutes } from './routes/presence.js';
import { registerPageTemplateRoutes } from './routes/page-templates.js';
import { registerSavedSectionRoutes } from './routes/saved-sections.js';
import { registerAiSeoRoutes } from './routes/ai-seo.js';
/**
 * Registers every CMS API route on the router. Each domain lives in its own
 * module under `./routes/`; registration order is preserved from the original
 * monolithic handler file because route matching is first-match-wins.
 */
export function registerCMSRoutes(router) {
    registerMetaRoutes(router);
    registerAuthRoutes(router);
    registerDocumentRoutes(router);
    registerSectionRoutes(router);
    registerMediaRoutes(router);
    registerSystemRoutes(router);
    registerDashboardRoutes(router);
    registerUserRoutes(router);
    registerFormRoutes(router);
    registerRedirectRoutes(router);
    registerSeoRoutes(router);
    registerSeoPublicRoutes(router);
    registerUrlResolutionRoutes(router);
    registerFolderRoutes(router);
    registerPreviewRoutes(router);
    registerCollabRoutes(router);
    registerSchedulingRoutes(router);
    registerGlobalRoutes(router);
    registerSecurityCenterRoutes(router);
    registerAiSettingsRoutes(router);
    registerWebhookRoutes(router);
    registerPresenceRoutes(router);
    registerPageTemplateRoutes(router);
    registerSavedSectionRoutes(router);
    registerAiSeoRoutes(router);
}
//# sourceMappingURL=handlers.js.map