express router
npm install express-generator-router
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);
})
MIT