rails-router

0.0.12 • Public • Published

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.

Package Sidebar

Install

npm i rails-router

Weekly Downloads

0

Version

0.0.12

License

MIT

Last publish

Collaborators

  • luin