Feature: MySpeed widget (#3662)

---------

Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
This commit is contained in:
Mathias Wagnerandshamoon authored and GitHub committed 2024-06-23 12:00:04 -07:00
1 parent f07d595ed9
commit 148511e6f8
8 files changed
+100

No files matched your search

+2
View File
@@ -69,6 +69,8 @@ export default async function credentialedProxyHandler(req, res, map) {
headers.Authorization = `Basic ${Buffer.from(`${widget.username}:${widget.password}`).toString("base64")}`;
} else if (widget.type === "plantit") {
headers.Key = `${widget.key}`;
} else if (widget.type === "myspeed") {
headers.Password = `${widget.password}`;
} else {
headers["X-API-Key"] = `${widget.key}`;
}