/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: {},
})
Kinic Wiki
Loading knowledge node
Details

Identity

database
db_23dhmsxlhukv
database_id
db_23dhmsxlhukv
path
/Wiki/sources/honojs__hono/2026/https-hono-dev-llms-full-txt-multiple-parameters-772abd4f2585-multiple-parameters-s0054-c0000.md
kind
directory
role
markdown_note
children
0

Metadata

created_at
virtual
updated_at
virtual
etag
virtual
metadata_json
{}

Lint Hints

No lightweight warnings.

Outgoing Links

No outgoing links indexed.

Incoming Links

Select a file node to inspect backlinks.

Raw Source

No raw source path inferred.