A router for express based on routington
$ npm install dissociator --save
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);
verb
could be any method in that available in method
package.
MIT