/Wiki/sources/honojs__hono/2026/https-hono-dev-llms-full-txt-optional-parameter-56a59504a90f-optional-parameter-s0594-c0000.md
Optional Parameter - hono-docs
Optional Parameter Source evidence: /Sources/raw/honojs hono/honojs hono.md Canonical citation: https://hono.dev/llms full.txt optional parameter Summary Con...
Optional Parameter
Source evidence: /Sources/raw/honojshono/honojshono.md Canonical citation: https://hono.dev/llms-full.txt#optional-parameter
Summary
## Content
```ts twoslash
import { Hono } from 'hono'
const app = new Hono()
// ---cut---
// Will match `/api/animal` and `/api/animal/:type`
app.get('/api/animal/:type?', (c) => c.text('Animal!'))