Utilities library
All functions that are not related to a specific logic and that can be reused across modules
- Source:
Methods
(static) requireMiddleware(moduleName) → {Mixed}
Require a middleware, e.g. a module located in /lib/middlewares
Parameters:
| Name | Type | Description |
|---|---|---|
moduleName |
String | Module name |
- Source:
Returns:
Module exports
- Type
- Mixed
(static) sendBack(res, status, content) → {Undefined}
Mutate response
Parameters:
| Name | Type | Description |
|---|---|---|
res |
Object | Response reference |
status |
Number | Response status |
content |
Object | Content to be sent back |
- Source:
Returns:
Nothing
- Type
- Undefined