Skip to content

menpuji/express-generator-router

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published