/Knowledge/sources/honojs__hono/llms-full/route-helper-usage-working-with-sub-applications--f99bc71ceb7d.md
Route Helper: Usage > Working with sub-applications - hono-docs
Route Helper: Usage Working with sub applications Source evidence: /Sources/honojs hono/provenance.md Canonical citation: https://hono.dev/llms full.txt work...
Route Helper: Usage > Working with sub-applications
Source evidence: /Sources/honojs__hono/provenance.md Canonical citation: https://hono.dev/llms-full.txt#working-with-sub-applications
Summary
## Content
```ts
const app = new Hono()
const apiApp = new Hono()
apiApp.get('/posts/:id', (c) => {
return c.json({
routePath: routePath(c), // '/posts/:id'
baseRoutePath: baseRoutePath(c), // '/api'
basePath: basePath(c), // '/api' (with actual params)
})
})
app.route('/api', apiApp)
Metadata
{
"chunk_index": 0,
"citation": "https://hono.dev/llms-full.txt#working-with-sub-applications",
"coverage_role": "overview",
"qualified_title": "Hono / llms-full / Route Helper > Usage > Working with sub-applications",
"retrieved_at": "2026-07-02T05:51:01Z",
"section_index": 731,
"source_id": "/honojs/hono",
"source_type": "llms_full",
"target_label": "llms-full",
"title": "Route Helper: Usage > Working with sub-applications",
"upstream_url": "https://hono.dev/llms-full.txt",
"version": "2026"
}