x/oak/router.ts

A middleware framework for handling HTTP with Deno, Node, Bun and Cloudflare Workers 🐿️ 🦕
Very Popular
Go to Latest
interface RouterParamMiddleware
import { type RouterParamMiddleware } from "https://dotland-vbqsvsrpfncg.deno-staging.dev/x/oak@v17.1.2/router.ts?p=prototype.all&s=RouterParamMiddleware";

Middleware that will be called by the router when handling a specific parameter, which the middleware will be called when a request matches the route parameter.

Type Parameters

R extends string[src]
optional
P extends RouteParams<R> = RouteParams<R>
[src]
optional
S extends State = Record<string, any>
[src]

Call Signatures

(
param: string,
context: RouterContext<R, P, S>,
next: () => Promise<unknown>,
): Promise<unknown> | unknown
[src]

Properties

optional
router: Router<any>
[src]