/** * Dashboard — API route dispatcher and SPA serving. * * Architecture: * GET / → Serve the SPA (single-page HTML with embedded CSS/JS) * GET /api/* → Route table dispatch to domain handlers * * Domain handler modules: * routes/settings.ts — agent-type, dmn-activation-hours * routes/templates.ts — template CRUD, drive templates, drive presets * routes/data.ts — status, sessions, notes, episodes, topics, search, topic-registry * * All /api/* routes require Bearer token auth (same as MCP_HTTP_SECRET). * The dashboard page itself is served without auth — API token entered in the UI. */ import type { IncomingMessage, ServerResponse } from "node:http"; export type { DashboardContext, JsonFn, RouteArgs, RouteHandler } from "./routes/types.js"; import type { DashboardContext } from "./routes/types.js"; /** * Handle a dashboard or API request. Returns true if handled, false if not a dashboard route. */ export declare function handleDashboardRequest(req: IncomingMessage, res: ServerResponse, ctx: DashboardContext, authToken?: string): Promise; //# sourceMappingURL=routes.d.ts.map