mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-16 21:56:25 -05:00
fix tests
This commit is contained in:
parent
d9accbb6a7
commit
5cc0187b67
1 changed files with 2 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue