mirror of
https://github.com/stronk-dev/LivepeerEvents.git
synced 2025-07-05 02:35:09 +02:00
Changed endpoit address for prometheus
This commit is contained in:
parent
6f2c2016e1
commit
cb8c2fb58b
@ -624,7 +624,7 @@ apiRouter.post("/getOrchestratorByDelegator", async (req, res) => {
|
||||
|
||||
|
||||
// Export livepeer and eth coin prices and L1 Eth gas price
|
||||
apiRouter.get("/prometheus", async (req, res) => {
|
||||
apiRouter.get("/prometheus/:orchAddr", async (req, res) => {
|
||||
try {
|
||||
const now = new Date().getTime();
|
||||
// Update blockchain data if the cached data has expired
|
||||
@ -706,7 +706,7 @@ apiRouter.get("/prometheus", async (req, res) => {
|
||||
outputString += serviceUriFeeCostL2 + "\n\n";
|
||||
|
||||
// Get requested orchestrator info if it is requested
|
||||
let reqOrch = req.query.orch;
|
||||
let reqOrch = req.params.orchAddr;
|
||||
let orchObj = {};
|
||||
if (reqOrch && reqOrch !== "") {
|
||||
orchObj = await parseOrchestrator(reqOrch);
|
||||
|
Loading…
x
Reference in New Issue
Block a user