mcp-use
Version:
Opinionated MCP Framework for TypeScript (@modelcontextprotocol/sdk compatible) - Build MCP Agents, Clients and Servers with support for ChatGPT Apps, Code Mode, OAuth, Notifications, Sampling, Observability and more.
23 lines • 901 B
TypeScript
/**
* Static widget route handlers
*
* This module sets up HTTP routes for serving widget assets, HTML files,
* and public resources in production mode.
*/
import type { Hono as HonoType } from "hono";
import type { ServerConfig } from "./widget-types.js";
/**
* Setup static file serving routes for widgets
*
* Creates HTTP routes to serve:
* - Widget assets (JS, CSS, images) from dist/resources/widgets/{widget}/assets/
* - Widget HTML files from dist/resources/widgets/{widget}/index.html
* - Public files from dist/public/ or public/ directories
*
* These routes are used in production mode to serve pre-built widget bundles.
*
* @param app - Hono app instance to mount routes on
* @param serverConfig - Server configuration (baseUrl)
*/
export declare function setupWidgetRoutes(app: HonoType, serverConfig: ServerConfig): void;
//# sourceMappingURL=setup-widget-routes.d.ts.map