mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-16 09:49:49 +00:00
24 lines
398 B
JavaScript
24 lines
398 B
JavaScript
|
|
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;
|