Skip to main content
The Deno 2 Release Candidate is here
Learn more
Latest
method Router.prototype.param
Re-export
import { Router } from "https://deno.land/x/ptero@3.0/Ptero/deps.ts";

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

Type Parameters

optional
S extends State = RS

Parameters

param: keyof RP
middleware: RouterParamMiddleware<RP, S>