Enhancement: support pfsense v2 api (#3716)
This commit is contained in:
1 parent
b8af7ad95d
commit
9d16e280cd
4 files changed
+26
-7
No files matched your search
@@ -1,16 +1,24 @@
|
||||
import genericProxyHandler from "utils/proxy/handlers/generic";
|
||||
|
||||
const widget = {
|
||||
api: "{url}/api/v1/{endpoint}",
|
||||
api: "{url}/api/{endpoint}",
|
||||
proxyHandler: genericProxyHandler,
|
||||
|
||||
mappings: {
|
||||
system: {
|
||||
endpoint: "status/system",
|
||||
endpoint: "v1/status/system",
|
||||
validate: ["data"],
|
||||
},
|
||||
interface: {
|
||||
endpoint: "status/interface",
|
||||
endpoint: "v1/status/interface",
|
||||
validate: ["data"],
|
||||
},
|
||||
systemv2: {
|
||||
endpoint: "v2/status/system",
|
||||
validate: ["data"],
|
||||
},
|
||||
interfacev2: {
|
||||
endpoint: "v2/status/interfaces?limit=0&offset=0",
|
||||
validate: ["data"],
|
||||
},
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user