0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-01-27 22:59:51 -05:00

Add endpoint for the command npm ping

This commit is contained in:
Juan Picado 2017-04-29 22:29:05 +02:00
parent b264e9f3df
commit 4ee0ca29d4
No known key found for this signature in database
GPG key ID: 18AC54485952D158

View file

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