/Knowledge/sources/honojs__hono/llms-full/route-helper-routepath--0585af457e52.md
Route Helper: routePath() - hono-docs
Route Helper: routePath() Source evidence: /Sources/honojs hono/provenance.md Canonical citation: https://hono.dev/llms full.txt routepath Summary Returns th...
Route Helper: routePath()
Source evidence: /Sources/honojs__hono/provenance.md Canonical citation: https://hono.dev/llms-full.txt#routepath
Summary
Returns the route path pattern registered for the current handler. ts app.get('/posts/:id', (c) => { console.log(routePath(c)) // '/posts/:id' return c.text('Post details') })
Content
Returns the route path pattern registered for the current handler.
app.get('/posts/:id', (c) => {
console.log(routePath(c)) // '/posts/:id'
return c.text('Post details')
})
Metadata
{
"chunk_index": 0,
"citation": "https://hono.dev/llms-full.txt#routepath",
"coverage_role": "overview",
"qualified_title": "Hono / llms-full / Route Helper > `routePath()`",
"retrieved_at": "2026-07-02T05:51:01Z",
"section_index": 733,
"source_id": "/honojs/hono",
"source_type": "llms_full",
"target_label": "llms-full",
"title": "Route Helper: routePath()",
"upstream_url": "https://hono.dev/llms-full.txt",
"version": "2026"
}