pub fn build(state: SharedState) -> RouterExpand description
Build the application router with all endpoints
Routes:
POST /v1/chat/completions— Chat completion (streaming and non-streaming)GET /v1/models— List available modelsGET /health— Provider health checkPOST /mcp— MCP Streamable HTTP (JSON-RPC 2.0, via dravr-tronc)
The auth middleware is applied to all routes. It only enforces
authentication when EMBACLE_API_KEY is set.