mirror of
https://github.com/gethomepage/homepage.git
synced 2026-09-16 17:16:15 -07:00
a6c753c8aa
Lint / Linting Checks (push) Has been cancelled
Docker CI / Docker Build & Push (push) Has been cancelled
Release Drafter / Update Release Draft (push) Has been cancelled
Release Drafter / Auto Label PR (push) Has been cancelled
Tests / vitest (1) (push) Has been cancelled
Tests / vitest (2) (push) Has been cancelled
Tests / vitest (3) (push) Has been cancelled
Tests / vitest (4) (push) Has been cancelled
22 lines
503 B
JavaScript
22 lines
503 B
JavaScript
import credentialedProxyHandler from "utils/proxy/handlers/credentialed";
|
|
|
|
const widget = {
|
|
api: "{url}/api2/json/{endpoint}",
|
|
proxyHandler: credentialedProxyHandler,
|
|
|
|
mappings: {
|
|
"status/datastore-usage": {
|
|
endpoint: "status/datastore-usage",
|
|
},
|
|
"nodes/localhost/tasks": {
|
|
endpoint: "nodes/localhost/tasks",
|
|
params: ["errors", "limit", "since"],
|
|
},
|
|
"nodes/localhost/status": {
|
|
endpoint: "nodes/localhost/status",
|
|
},
|
|
},
|
|
};
|
|
|
|
export default widget;
|