apeman-demo-middleware
v1.0.4
Published
Demo of middleware projects
Downloads
8
Readme
apeman-demo-middleware
Demo of middleware projects
Installation
$ npm install apeman-demo-middleware --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-demo-middleware */
'use strict'
module.exports = {
$pkg: { /* ... */ },
$api: {
/* ... */
$middlewares: [
require('apeman-demo-middleware')({})
]
}
}
Signature
apemanDemoMiddleware(options) -> function
Create an middleware function
Args
| Name | Type | Default | Description | | --- | ---- | --- | --- | | options | Object | {} | Optional settings |
License
This software is released under the MIT License.