apeman-middleware-validate
v1.0.0
Published
Middlware for schema validation
Downloads
1
Readme
apeman-middleware-validate
Middlware for schema validation
Installation
$ npm install apeman-middleware-validate --save
Usage
create an middleware instance and attach to server settings like $api
of apeman projects.
Apemanfile.js
/** This is an example Apemanfile to use apeman-middleware-validate */
'use strict'
module.exports = {
$pkg: { /* ... */ },
$api: {
/* ... */
$middlewares: [
require('apeman-middleware-validate')({})
]
}
}
Signature
apemanMiddlewareValidate(options) -> function
Create an middleware function
Args
| Name | Type | Default | Description | | --- | ---- | --- | --- | | options | Object | {} | Optional settings |
License
This software is released under the MIT License.