From cb8c2fb58b123931612e75ca56e702b9581cab83 Mon Sep 17 00:00:00 2001 From: Marco van Dijk Date: Mon, 7 Mar 2022 14:32:15 +0100 Subject: [PATCH] Changed endpoit address for prometheus --- backend/src/routes/livepeer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/routes/livepeer.js b/backend/src/routes/livepeer.js index 601d152..1ad24ac 100644 --- a/backend/src/routes/livepeer.js +++ b/backend/src/routes/livepeer.js @@ -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);