Feature: MySpeed widget (#3662)

---------

Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
This commit is contained in:
Mathias Wagner 2024-06-23 21:00:04 +02:00 committed by GitHub
parent f07d595ed9
commit 148511e6f8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 100 additions and 0 deletions

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}`;
}