@morojs/moro / ParamEcho
Interface: ParamEcho
Defined in: src/core/routing/unified-router.ts:96
The marker param(name) produces: "answer with this path parameter as the
body". .handler(param('id')) on /user/:id answers GET /user/42 with
42, as res.end(req.params.id) would - and on Moro's native engine, on
a route with nothing else configured, without entering JS at all.
Properties
[PARAM_ECHO]
readonly[PARAM_ECHO]:true
Defined in: src/core/routing/unified-router.ts:97
name
readonlyname:string
Defined in: src/core/routing/unified-router.ts:98