mirror of
https://github.com/gethomepage/homepage.git
synced 2026-09-29 23:41:16 -07:00
Enhancement: support pfsense v2 api (#3716)
This commit is contained in:
@@ -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