/Knowledge/sources/honojs__hono/llms-full/route-helper-baseroutepath--8c0b3aea854c.md
Route Helper: baseRoutePath() - hono-docs
Route Helper: baseRoutePath() Source evidence: /Sources/honojs hono/provenance.md Canonical citation: https://hono.dev/llms full.txt baseroutepath Summary Re...
Route Helper: baseRoutePath()
Source evidence: /Sources/honojs__hono/provenance.md Canonical citation: https://hono.dev/llms-full.txt#baseroutepath
Summary
Returns the base path pattern of the current route as specified in routing. ts const subApp = new Hono() subApp.get('/posts/:id', (c) => { return c.text(baseRoutePath(c)) // '/:sub' }) app.route('/:sub', subApp)
Content
Returns the base path pattern of the current route as specified in routing.
const subApp = new Hono()
subApp.get('/posts/:id', (c) => {
return c.text(baseRoutePath(c)) // '/:sub'
})
app.route('/:sub', subApp)
Metadata
{
"chunk_index": 0,
"citation": "https://hono.dev/llms-full.txt#baseroutepath",
"coverage_role": "overview",
"qualified_title": "Hono / llms-full / Route Helper > `baseRoutePath()`",
"retrieved_at": "2026-07-02T05:51:01Z",
"section_index": 735,
"source_id": "/honojs/hono",
"source_type": "llms_full",
"target_label": "llms-full",
"title": "Route Helper: baseRoutePath()",
"upstream_url": "https://hono.dev/llms-full.txt",
"version": "2026"
}