From 5cc0187b676da070c3befd5885f5f12432a0c763 Mon Sep 17 00:00:00 2001 From: Alex Kocharin Date: Tue, 24 Jun 2014 06:57:54 +0400 Subject: [PATCH] fix tests --- lib/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/index.js b/lib/index.js index 21d911256..3cce3f2d6 100644 --- a/lib/index.js +++ b/lib/index.js @@ -107,6 +107,7 @@ module.exports = function(config_hash) { // these can't be safely put into express url for some reason app.param('_rev', match(/^-rev$/)) app.param('org_couchdb_user', match(/^org\.couchdb\.user:/)) + app.param('anything', match(/.*/)) /* app.get('/', function(req, res) { res.send({ @@ -171,7 +172,7 @@ module.exports = function(config_hash) { }) // searching packages - app.get('/-/all/:since?', function(req, res, next) { + app.get('/-/all/:anything?', function(req, res, next) { storage.search(req.param.startkey || 0, {req: req}, function(err, result) { if (err) return next(err) for (var pkg in result) {