visionmedia/express-namespace — Issue #9: Global route control for namespace
Author: corpix
Created: 2011-11-05 12:27:19+00:00
State: open

Hi!
I think i've made some pretty cool think :)
So i can do:

app.namespace('/foo', function(req, res, next){
console.log('foo called!');
next();
}, function(){
this.get('/', function(req, res){
res.send('/foo');
});

this.get('/bar', function(req, res){
res.send('/foo/bar');
});
});

It's useful to control access, for example