1.1.3 • Published 6 years ago

express-route-easy v1.1.3

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

express-route-easy

Install

This is a Node.js module available through the npm registry. Installation is done using the npm install command:

$ npm i express-route-easy

Examples

Using with

Using with express

const express = require('express')
const app = express()

const easy = require('express-route-easy')

exports.import = ['/import', async (req, res, next) => {
  res.send({go: 'the force awakens'})
}]

exports.export = ['/export', async (req, res, next) => {
  res.send({go2: 'the force awakens'})
}]

exports.routes = easy([], exports)

app.use('/v1', exports.routes)

License

MIT

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago