daobao

Dispatcher for Express route generators. (initially developed for use with Chungking controllers and Railway-routes.

npm install daobao
28 downloads in the last month

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);
npm loves you