Created
June 24, 2014 01:12
-
-
Save getchenge/4917fed40d38a10aaf95 to your computer and use it in GitHub Desktop.
router
This file contains 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
app.get('/user/:id', function(req, res){ | |
res.send('user ' + req.params.id); | |
}); | |
"/user/:id" | |
/user/12 | |
"/users/:id?" | |
/users/5 | |
/users | |
"/files/*" | |
/files/jquery.js | |
/files/javascripts/jquery.js | |
"/file/*.*" | |
/files/jquery.js | |
/files/javascripts/jquery.js | |
"/user/:id/:operation?" | |
/user/1 | |
/user/1/edit | |
"/products.:format" | |
/products.json | |
/products.xml | |
"/products.:format?" | |
/products.json | |
/products.xml | |
/products | |
"/user/:id.:format?" | |
/user/12 | |
/user/12.json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment