node package manager

dissociator

Dissociator

NPM version Build Status Dependency Status

A router for express based on routington

Install

$ npm install dissociator --save

Usage

var dissociator = require('dissociator');
var router = dissociator();
 
// middleware 
router.use('/page', function(req, res, next) {
    next();
});
 
router.post('/post|page/:controller', function(req, res) {
 
});
 
router.get('/page/:id(\\w{3,30})', function(req, res, next) {
 
});
 
var app = require('express')();
 
app.use(router);

API

router[verb]

verb could be any method in that available in method package.

Licence

MIT