Skip to content

covenix / Param

Function: Param()

Param(name): ParameterDecorator

Defined in: src/parameters.ts:57

Injects req.params[name] as a handler argument. Resolves to the value parsed by @Params when present, otherwise the raw string from Express.

Parameters

name

string

Path parameter name (must match the {name} in the route path).

Returns

ParameterDecorator