/Wiki/sources/honojs__hono/2026/https-hono-dev-llms-full-txt-showroutes-b037d65a9a77-showroutes-s0764-c0000.md
`showRoutes()` - hono-docs
showRoutes() Source evidence: /Sources/raw/honojs hono/honojs hono.md Canonical citation: https://hono.dev/llms full.txt showroutes Summary showRoutes() func...
showRoutes()
Source evidence: /Sources/raw/honojshono/honojshono.md Canonical citation: https://hono.dev/llms-full.txt#showroutes
Summary
showRoutes() function displays the registered routes in your console. Consider an application like the following: ```ts const app = new Hono().basePath('/v1') app.get('/posts', (c) => { // ... }) app.get('/posts/:id', (c) => { // ... }...
Content
showRoutes() function displays the registered routes in your console.
Consider an application like the following:
const app = new Hono().basePath('/v1')
app.get('/posts', (c) => {
// ...
})
app.get('/posts/:id', (c) => {
// ...
})
app.post('/posts', (c) => {
// ...
})
showRoutes(app, {
verbose: true,
})When this application starts running, the routes will be shown in your console as follows:
GET /v1/posts
GET /v1/posts/:id
POST /v1/posts