项目作者: realglobe-Inc

项目描述 :
Endpoint to do nothing.
高级语言: JavaScript
项目地址: git://github.com/realglobe-Inc/sugo-endpoint-noop.git
创建时间: 2016-06-28T09:18:09Z
项目社区:https://github.com/realglobe-Inc/sugo-endpoint-noop

开源协议:Apache License 2.0

下载


sugo-endpoint-noop

Build Status
npm Version
JS Standard

Endpoint to do nothing.

Requirements


Node.js


NPM

Installation

  1. $ npm install sugo-endpoint-noop --save

Usage

Create an instance and apply to sg-server (or sugo-cloud)

  1. /** This is an example to use sugo-endpoint-noop */
  2. 'use strict'
  3. const sgServer = require('sg-server')
  4. const server = sgServer({
  5. middlewares: [
  6. /* ... */
  7. ],
  8. endpoints: {
  9. '/foo/bar': require('sugo-endpoint-noop')({
  10. // Options
  11. })
  12. }
  13. })
  14. server.listen(3000)

Signature

sugoEndpointNoop(options) -> function

Endpoint to do nothing.

Args
Name Type Default Description
options object Optional settings.

License

This software is released under the Apache-2.0 License.