/Knowledge/sources/honojs__hono/llms-full/rpc-path-parameters-multiple-parameters--83b850d0ebd3.md
RPC: Path parameters > Multiple parameters - hono-docs
RPC: Path parameters Multiple parameters Source evidence: /Sources/honojs hono/provenance.md Canonical citation: https://hono.dev/llms full.txt multiple para...
RPC: Path parameters > Multiple parameters
Source evidence: /Sources/honojs__hono/provenance.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: {},
})
Metadata
{
"chunk_index": 0,
"citation": "https://hono.dev/llms-full.txt#multiple-parameters",
"coverage_role": "overview",
"qualified_title": "Hono / llms-full / RPC > Path parameters > Multiple parameters",
"retrieved_at": "2026-07-02T05:51:01Z",
"section_index": 54,
"source_id": "/honojs/hono",
"source_type": "llms_full",
"target_label": "llms-full",
"title": "RPC: Path parameters > Multiple parameters",
"upstream_url": "https://hono.dev/llms-full.txt",
"version": "2026"
}