Methods
(static) module.exports(schema) → {function}
Custom middleware that will be used to validate the parameters passed in for each request
It will combine all the parameters it can find from body, query and params on the req object
Validation will be done against this combined object using the provided schema
Parameters:
| Name | Type | Description |
|---|---|---|
schema |
Object |
Returns:
- Type
- function