sugo-demo-middleware
Demo of sugo middleware
Last updated 8 months ago by realglobe .
Apache-2.0 · Repository · Bugs · Original npm · Tarball
$ cnpm install sugo-demo-middleware 
SYNC missed versions from official npm registry.

sugo-demo-middleware

Build Status npm Version JS Standard

Demo of sugo middleware

Requirements

Node.js NPM

Installation

$ npm install sugo-demo-middleware --save

Usage

Apply middleware to sg-server, which is internally use by sugo-cloud.

/** This is an example to use sugo-demo-middleware */

'use strict'

const sgServer = require('sg-server')

const server = sgServer({
  middlewares: [
    require('sugo-demo-middleware')({
      // Options
    })
  ],
  endpoints: {
    /* ... */
  }
})

server.listen(3000)


Signature

sugoDemoMiddleware(options) -> function

Demo of sugo middleware

Args
Name Type Default Description
options object Optional settings.

License

This software is released under the Apache-2.0 License.

Links

Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (13)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |