Parameters
Route parameters are attached to the ctx.params
object.
Parameters are available with the same syntax as path-to-regexp
:
app.get("/:name", (ctx) => {
return new TextBody(ctx.params.name);
});
Route parameters are attached to the ctx.params
object.
Parameters are available with the same syntax as path-to-regexp
: