Skip to content

Commit

Permalink
examples: remove unused function arguments in params
Browse files Browse the repository at this point in the history
closes #4914
  • Loading branch information
alxdrg authored and dougwilson committed May 20, 2022
1 parent 97f0a51 commit 2c47827
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/params/index.js
Expand Up @@ -51,15 +51,15 @@ app.get('/', function(req, res){
* GET :user.
*/

app.get('/user/:user', function(req, res, next){
app.get('/user/:user', function (req, res) {
res.send('user ' + req.user.name);
});

/**
* GET users :from - :to.
*/

app.get('/users/:from-:to', function(req, res, next){
app.get('/users/:from-:to', function (req, res) {
var from = req.params.from;
var to = req.params.to;
var names = users.map(function(user){ return user.name; });
Expand Down

0 comments on commit 2c47827

Please sign in to comment.