mirror of
https://github.com/gethomepage/homepage.git
synced 2025-12-07 09:35:54 -08:00
20 lines
406 B
JavaScript
20 lines
406 B
JavaScript
import genericProxyHandler from "utils/proxy/handlers/generic";
|
|
|
|
const widget = {
|
|
api: "{url}/api/{endpoint}",
|
|
proxyHandler: genericProxyHandler,
|
|
|
|
mappings: {
|
|
activity: {
|
|
endpoint: "diagnostics/activity/getActivity",
|
|
validate: ["headers"],
|
|
},
|
|
interface: {
|
|
endpoint: "diagnostics/traffic/interface",
|
|
validate: ["interfaces"],
|
|
},
|
|
},
|
|
};
|
|
|
|
export default widget;
|