Skip to content

Instantly share code, notes, and snippets.

@Sequoia
Created January 21, 2016 17:39
Show Gist options
  • Select an option

  • Save Sequoia/1db029160440d64d5b57 to your computer and use it in GitHub Desktop.

Select an option

Save Sequoia/1db029160440d64d5b57 to your computer and use it in GitHub Desktop.
testing express routing
var app = require('express')();
app.use('/admin',function(rq,rs){
rs.send('/admin');
});
app.use('/admin*',function(rq,rs){
rs.send('/admin*');
});
app.use('/admin/*',function(rq,rs){
rs.send('/admin/*');
});
app.use('/admin/foo',function(rq,rs){
rs.send('/admin/foo');
});
app.listen(9090)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment