import { HonoRequest } from "https://deno.land/x/hono@v4.3.6/request.ts";
.req.param()
gets the path parameters.
Examples
Example 1
Example 1
const name = c.req.param('name')
// or all parameters at once
const { id, comment_id } = c.req.param()
Type Parameters
optional
P2 extends RemoveQuestion<ParamKeys<P>> = RemoveQuestion<ParamKeys<P>>Parameters
key: P2