Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/hex/src/fw/service/deps.ts>oak.RouterParamMiddleware

An ecosystem delivering practices, philosophy and portability. Powered By Deno and JavaScript.
Latest
interface oak.RouterParamMiddleware
import { type oak } from "https://deno.land/x/hex@0.6.5/src/fw/service/deps.ts";
const { RouterParamMiddleware } = oak;

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
optional
P extends RouteParams<R> = RouteParams<R>
optional
S extends State = Record<string, any>

Call Signatures

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

Properties

optional
router: Router<any>