diff --git a/panel/panel.js b/panel/panel.js index 46f7746..12b69df 100644 --- a/panel/panel.js +++ b/panel/panel.js @@ -63,7 +63,7 @@ createServer((req, res) => { return; } - if (path[0] === "params-panel" || path[0] === "favicon.ico") { + if (path[0] === "params-panel") { if (path[1] === "api" && path[2] === "list") { if (method !== "GET") { res.statusCode = 405; @@ -109,12 +109,6 @@ createServer((req, res) => { sendError(); }); } - - if (method !== "GET") { - res.statusCode = 405; - res.end("405 Method Not Allowed"); - return; - } } serveStatic(req, res); diff --git a/panel/static/index.html b/panel/static/index.html index 0bf0022..0c14750 100644 --- a/panel/static/index.html +++ b/panel/static/index.html @@ -135,7 +135,7 @@
- Open Grafana + Open Grafana
@@ -221,7 +221,7 @@

MSS Params

}); } - if (new URL(window.location.href).searchParams.get("code")) window.location.assign("/params-panel/"); + if (new URL(window.location.href).searchParams.get("code")) window.location.assign("/"); else ListAllParams();