Skip to main content

router

Function router 

Source
pub fn router(pool: Pool) -> Router
Expand description

The MCP router for a single-tenant app. Mount it under the prefix you want: Router::new().nest("/mcp", rustango::mcp::router(pool)).