/Wiki/sources/honojs__hono/2026/https-hono-dev-llms-full-txt-multiple-parameters-772abd4f2585-multiple-parameters-s0054-c0000.md
Multiple parameters - hono-docs
Multiple parameters Source evidence: /Sources/raw/honojs hono/honojs hono.md Canonical citation: https://hono.dev/llms full.txt multiple parameters Summary H...
Multiple parameters
Source evidence: /Sources/raw/honojshono/honojshono.md Canonical citation: https://hono.dev/llms-full.txt#multiple-parameters
Summary
Handle routes with multiple parameters. ```ts const route = app.get( '/posts/:postId/:authorId', zValidator( 'query', z.object({ page: z.string().optional(), }) ), (c) => { // ... return c.json({ title: 'Night', body: 'Time to sleep', })...
Content
Handle routes with multiple parameters.
const route = app.get(
'/posts/:postId/:authorId',
zValidator(
'query',
z.object({
page: z.string().optional(),
})
),
(c) => {
// ...
return c.json({
title: 'Night',
body: 'Time to sleep',
})
}
)Add multiple [''] to specify params in path.
const res = await client.posts[':postId'][':authorId'].$get({
param: {
postId: '123',
authorId: '456',
},
query: {},
})