Created
January 21, 2016 17:39
-
-
Save Sequoia/1db029160440d64d5b57 to your computer and use it in GitHub Desktop.
testing express routing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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