rails-router
v0.0.12
Published
RESTful rails-style routing for koa and express. Supports Node >= 4.0;
Downloads
19
Readme
rails-router
RESTful rails-style routing for koa and express. Supports Node >= 4.0;
Install
$ npm install rails-router
Basic Usage
const Router = require('rails-router');
const router = new Router();
router.get('/', 'welcome#index');
router.resource('book', router => {
router.resource('comment');
});
Integration
Rails-router works with Express and Koa.