mirror of
https://github.com/gethomepage/homepage.git
synced 2025-12-07 09:35:54 -08:00
Add support for pfSense API
This commit is contained in:
24
src/widgets/pfsenseapi/widget.js
Normal file
24
src/widgets/pfsenseapi/widget.js
Normal 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;
|
||||
Reference in New Issue
Block a user