mirror of
https://github.com/gethomepage/homepage.git
synced 2026-09-26 22:11:20 -07:00
Docker CI / Docker Build & Push (push) Has been cancelled
Lint / Linting Checks (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
23 lines
527 B
JavaScript
23 lines
527 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"],
|
|
optionalParams: ["since"],
|
|
},
|
|
"nodes/localhost/status": {
|
|
endpoint: "nodes/localhost/status",
|
|
},
|
|
},
|
|
};
|
|
|
|
export default widget;
|