mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-20 19:49:49 +00:00
Feature: Plant-it widget (#2941)
This commit is contained in:
parent
841c74d58a
commit
619f365c92
9 changed files with 91 additions and 0 deletions
|
@ -65,6 +65,8 @@ export default async function credentialedProxyHandler(req, res, map) {
|
|||
headers.Authorization = `Basic ${Buffer.from(`$:${widget.key}`).toString("base64")}`;
|
||||
} else if (widget.type === "glances") {
|
||||
headers.Authorization = `Basic ${Buffer.from(`${widget.username}:${widget.password}`).toString("base64")}`;
|
||||
} else if (widget.type === "plantit") {
|
||||
headers.Key = `${widget.key}`;
|
||||
} else {
|
||||
headers["X-API-Key"] = `${widget.key}`;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue