Files
homepage/src/widgets/proxmoxbackupserver/widget.js
T
shamoon f7666df9d8
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
Move PBS since param to optional params
2026-09-17 07:36:08 -07:00

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;