Add pfSense API widget (#1491)

* Add support for pfSense API

* Fix linting issues

* remove a line

* rename cpu to load in default block

* Re-order container blocks to ensure defaults show

* simplify pfsense widget, rename, limit blocks

---------

Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
This commit is contained in:
Shaun Walker
2023-05-14 06:44:33 +10:00
committed by GitHub
parent 9617583ee8
commit 77f4c8bf54
6 changed files with 91 additions and 3 deletions

View File

@@ -0,0 +1,24 @@
import genericProxyHandler from "utils/proxy/handlers/generic";
const widget = {
api: "{url}/api/v1/{endpoint}",
proxyHandler: genericProxyHandler,
mappings: {
system: {
endpoint: "status/system",
validate: [
"data"
]
},
interface: {
endpoint: "status/interface",
validate: [
"data"
]
}
},
};
export default widget;