node package manager
Easy collaboration. Discover, share, and reuse code in your team. Create a free org »

daobao

Set route handler for railway-routes generated routes and Chungking controllers.

Install

npm install daobao;

Usage

var controllers = require('../controllers')
  , handler = require('daobao').assignHandler(controllers)
  , map = new require('railway-routes').Map(app, handler);