Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/danet/src/deps.ts>Router#param

The most mature backend framework for Deno
Go to Latest
method Router.prototype.param
import { Router } from "https://deno.land/x/danet@1.7.4/src/deps.ts";

Register param middleware, which will be called when the particular param is parsed from the route.

Type Parameters

R extends string
optional
S extends State = RS

Parameters

param: keyof RouteParams<R>
middleware: RouterParamMiddleware<R, RouteParams<R>, S>