Skip to content

Latest commit

 

History

History
33 lines (16 loc) · 379 Bytes

README.md

File metadata and controls

33 lines (16 loc) · 379 Bytes

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