mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-02-21 07:29:37 +01:00
fix tests
This commit is contained in:
parent
d9accbb6a7
commit
5cc0187b67
@ -107,6 +107,7 @@ module.exports = function(config_hash) {
|
|||||||
// these can't be safely put into express url for some reason
|
// these can't be safely put into express url for some reason
|
||||||
app.param('_rev', match(/^-rev$/))
|
app.param('_rev', match(/^-rev$/))
|
||||||
app.param('org_couchdb_user', match(/^org\.couchdb\.user:/))
|
app.param('org_couchdb_user', match(/^org\.couchdb\.user:/))
|
||||||
|
app.param('anything', match(/.*/))
|
||||||
|
|
||||||
/* app.get('/', function(req, res) {
|
/* app.get('/', function(req, res) {
|
||||||
res.send({
|
res.send({
|
||||||
@ -171,7 +172,7 @@ module.exports = function(config_hash) {
|
|||||||
})
|
})
|
||||||
|
|
||||||
// searching packages
|
// 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) {
|
storage.search(req.param.startkey || 0, {req: req}, function(err, result) {
|
||||||
if (err) return next(err)
|
if (err) return next(err)
|
||||||
for (var pkg in result) {
|
for (var pkg in result) {
|
||||||
|
Loading…
Reference in New Issue
Block a user