0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-03-25 02:32:52 -05:00

npmjs returns an emtpy object

This commit is contained in:
Juan Picado 2017-04-30 09:58:11 +02:00
parent 4ee0ca29d4
commit aaedc13d2c
No known key found for this signature in database
GPG key ID: 18AC54485952D158
2 changed files with 6 additions and 7 deletions

View file

@ -474,10 +474,9 @@ module.exports = function(config, auth, storage) {
});
});
// npm ping
// npm ping
app.get('/-/ping', function(req, res, next) {
next({pong: new Date()});
next({});
});
return app;

View file

@ -10,10 +10,10 @@ const MyStreams = require('./streams');
const Proxy = require('./up-storage');
const Utils = require('./utils');
//
// Implements Storage interface
// (same for storage.js, local-storage.js, up-storage.js)
//
/**
* Implements Storage interface
* (same for storage.js, local-storage.js, up-storage.js).
*/
class Storage {
/**