Add support for pfSense API

This commit is contained in:
theshaun 2023-05-13 17:20:57 +10:00 committed by shamoon
parent 4aeb3882af
commit 3240b7a169
2 changed files with 95 additions and 0 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;