Permalink
Browse files

Fixed trailing slash in URL bug

  • Loading branch information...
1 parent d093351 commit 41e7dd344af7084ef3f9b85091494072d4c92879 @hillct hillct committed Sep 11, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 app.js
View
1 app.js
@@ -692,6 +692,7 @@ app.post('/upload', function(req, res) {
// API shortname, all lowercase
app.get('/:api([^\.]+)', function(req, res) {
+ req.params.api=req.params.api.replace(/\/$/,'');
res.render('api');
});

0 comments on commit 41e7dd3

Please sign in to comment.