0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-16 21:56:25 -05:00

fix tests

This commit is contained in:
Alex Kocharin 2014-06-24 06:57:54 +04:00
parent d9accbb6a7
commit 5cc0187b67

View file

@ -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) {