0.1.0 • Published 10 years ago
dissociator v0.1.0
Dissociator
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
routerverb
verb
could be any method in that available in method
package.
Licence
MIT