Restored API.
This commit is contained in:
parent
e39ddeeea2
commit
f8f9d6c0ef
16 changed files with 272 additions and 352 deletions
|
@ -166,7 +166,7 @@ void xmrig::Network::onPause(IStrategy *strategy)
|
|||
void xmrig::Network::onRequest(IApiRequest &request)
|
||||
{
|
||||
# ifdef XMRIG_FEATURE_API
|
||||
if (request.method() == IApiRequest::METHOD_GET && request.url() == "/1/summary") {
|
||||
if (request.method() == IApiRequest::METHOD_GET && (request.url() == "/1/summary" || request.url() == "/api.json")) {
|
||||
request.accept();
|
||||
|
||||
getResults(request.reply(), request.doc());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue