mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-12 07:58:49 +00:00
21 lines
408 B
JavaScript
Executable file
21 lines
408 B
JavaScript
Executable file
import genericProxyHandler from "utils/proxy/handlers/generic";
|
|
|
|
const widget = {
|
|
api: "{url}/api/{endpoint}",
|
|
proxyHandler: genericProxyHandler,
|
|
|
|
mappings: {
|
|
alerts: {
|
|
endpoint: "alerts",
|
|
},
|
|
alertmanager: {
|
|
endpoint: "alertmanager/grafana/api/v2/alerts",
|
|
},
|
|
stats: {
|
|
endpoint: "admin/stats",
|
|
validate: ["dashboards"],
|
|
},
|
|
},
|
|
};
|
|
|
|
export default widget;
|