express-generator-router
> express router
Last updated a year ago by mlyknown .
ISC · Repository · Bugs · Original npm · Tarball
$ cnpm install express-generator-router 
SYNC missed versions from official npm registry.

express-generator-router

express router

Install

npm install express-generator-router

Usage

 var Router = require("express-generator-router");
 router = Router(opts);

 app.use('/api/', router.router);

 router.post('/test', function*(req, res, next) {
   //var result = yield fetch(url);
   res.json(result.data);
 })

License

MIT

Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 0
Last Month 1
Dependencies (1)
  • co ^4.6.0
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |