mirror of
https://github.com/expressjs/express.git
synced 2026-02-21 19:41:36 +00:00
committed by
Douglas Christopher Wilson
parent
6da454c7fb
commit
fde8f647d3
@@ -68,7 +68,7 @@ app.get('/users/:from-:to', function(req, res, next){
|
||||
var from = req.params.from;
|
||||
var to = req.params.to;
|
||||
var names = users.map(function(user){ return user.name; });
|
||||
res.send('users ' + names.slice(from, to).join(', '));
|
||||
res.send('users ' + names.slice(from, to + 1).join(', '));
|
||||
});
|
||||
|
||||
/* istanbul ignore next */
|
||||
|
||||
Reference in New Issue
Block a user