Endpoint to do nothing.
Endpoint to do nothing.
$ npm install sugo-endpoint-noop --save
Create an instance and apply to sg-server (or sugo-cloud)
/** This is an example to use sugo-endpoint-noop */
'use strict'
const sgServer = require('sg-server')
const server = sgServer({
middlewares: [
/* ... */
],
endpoints: {
'/foo/bar': require('sugo-endpoint-noop')({
// Options
})
}
})
server.listen(3000)
Endpoint to do nothing.
Name | Type | Default | Description |
---|---|---|---|
options | object | Optional settings. |
This software is released under the Apache-2.0 License.