Enhancement: support speedtest v1.2 API (#4695)
Some checks are pending
Docker / Linting Checks (push) Waiting to run
Docker / Docker Build & Push (push) Blocked by required conditions

This commit is contained in:
shamoon
2025-02-02 19:11:08 -08:00
committed by GitHub
parent cbacf458b2
commit 07dff4c8a5
5 changed files with 26 additions and 9 deletions

View File

@@ -1,14 +1,18 @@
import genericProxyHandler from "utils/proxy/handlers/generic";
import genericProxyHandler from "utils/proxy/handlers/credentialed";
const widget = {
api: "{url}/api/{endpoint}",
proxyHandler: genericProxyHandler,
mappings: {
"speedtest/latest": {
latestv1: {
endpoint: "speedtest/latest",
validate: ["data"],
},
latestv2: {
endpoint: "v1/results/latest",
validate: ["data"],
},
},
};