> Fetch clean Markdown by appending `.md` to any page URL under https://signalwire.com/docs or requesting it with the HTTP header `Accept: text/markdown`. The root index at https://signalwire.com/docs/llms.txt lists the available documentation indexes. # asRouter > Get the agent's Hono app for mounting as a sub-router. [agentserver]: /docs/server-sdks/reference/typescript/agents/agent-server Get this agent's Hono application for mounting as a sub-router in a larger Hono application or an [`AgentServer`][agentserver]. ## **Parameters** None. ## **Returns** `HostAppRouter` -- The agent's Hono app, with all agent endpoints (SWML delivery, SWAIG function handling, post-prompt, debug events, health checks, etc.). `HostAppRouter` is a type alias for `Hono`, named for the host-app mounting contract it fulfills. ## **Example** ```typescript {9} import { Hono } from 'hono'; import { AgentBase } from '@signalwire/sdk'; const app = new Hono(); const supportAgent = new AgentBase({ name: 'support', route: '/support' }); const salesAgent = new AgentBase({ name: 'sales', route: '/sales' }); app.route('/support', supportAgent.asRouter()); app.route('/sales', salesAgent.asRouter()); ``` > Get the agent's Hono app for mounting as a sub-router.