Skip to content

villadora/dissociator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Routington router for express

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published