mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-17 18:29:48 +00:00
Add support for pfSense API
This commit is contained in:
parent
4aeb3882af
commit
3240b7a169
2 changed files with 95 additions and 0 deletions
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;
|
Loading…
Add table
Add a link
Reference in a new issue