mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-23 22:27:34 -05:00
parent
3f746eb7c8
commit
17d8ab7dcd
1 changed files with 1 additions and 3 deletions
|
@ -172,9 +172,7 @@ module.exports = function(config_hash) {
|
||||||
|
|
||||||
// searching packages
|
// searching packages
|
||||||
app.get('/-/all/:package?', can('access'), function(req, res, next) {
|
app.get('/-/all/:package?', can('access'), function(req, res, next) {
|
||||||
var startkeyRegExp = /(.*)=([0-9]+)$/
|
storage.search(req.param.startkey || 0, {req: req}, function(err, result) {
|
||||||
var startkey = startkeyRegExp.test(req.url) ? new Date(+req.url.replace(startkeyRegExp, '$2')) : 0
|
|
||||||
storage.search(startkey, {req: req}, function(err, result) {
|
|
||||||
if (err) return next(err)
|
if (err) return next(err)
|
||||||
|
|
||||||
return res.send(result)
|
return res.send(result)
|
||||||
|
|
Loading…
Reference in a new issue