mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-02-03 23:09:17 -05:00
Add endpoint for the command npm ping
This commit is contained in:
parent
b264e9f3df
commit
4ee0ca29d4
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
return app;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue