r.pipeis an indexed monad builder used for collecting information about Marble REST route details, like: path, request method type, middlewares and connected Effect.
combineRoutesfunction, which combines routing for a prefixed path passed as a first argument. Exported group of Effects can be combined with other Effects like in the example below.
req.bodyobject containing the parsed data will be populated on the request object after the middleware, or undefined if there was no body to parse, the
Content-Typewas not matched, or an error occurred. To learn more about body parsing middleware visit the @marblejs/middleware-body API specification.
combineRoutesfunction and the
r.matchPathallows you to define parameters in the path argument. All parameters are defined by the syntax with a colon prefix.
req.paramsproperty. If there are no decoded URL parameters then the property contains an empty object. For the above example and route
req.paramsobject will contain the following properties:
*) to denote a zero or more parameter matches. The code snippet below shows an example use case of a "zero-or-more" parameter. For example, it can be useful for defining routing for static assets.
req.queryproperty. If there are no decoded query parameters then the property contains an empty object. For parsing and decoding query parameters, Marble.js makes use of