Skip to content

Commit

Permalink
Added /metrics API endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
ubicorn authored Jun 24, 2020
1 parent b7ba0da commit efb788a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions API/ApiServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,8 @@ std::string ApiServer::route(std::vector<std::string> urlParts, std::string json
if(urlParts.size() == 1) {
return Api::getCurrencies();
}
} else if(urlParts.at(0) == "metrics") {
return Api::getMetrics();
}
}
return Api::getIndex();
Expand Down

0 comments on commit efb788a

Please sign in to comment.