Fix: omada widget broken in v0.9.1

This commit is contained in:
shamoon 2024-06-04 07:27:57 -07:00
parent 9803ef70c6
commit baf50b25ad
2 changed files with 7 additions and 1 deletions

View File

@ -9,7 +9,7 @@ export default function Component({ service }) {
const { widget } = service; const { widget } = service;
const { data: omadaData, error: omadaAPIError } = useWidgetAPI(widget, { const { data: omadaData, error: omadaAPIError } = useWidgetAPI(widget, "info", {
refreshInterval: 5000, refreshInterval: 5000,
}); });

View File

@ -2,6 +2,12 @@ import omadaProxyHandler from "./proxy";
const widget = { const widget = {
proxyHandler: omadaProxyHandler, proxyHandler: omadaProxyHandler,
mappings: {
info: {
endpoint: "api/info",
},
},
}; };
export default widget; export default widget;