mirror of
https://github.com/gethomepage/homepage.git
synced 2025-12-05 21:47:48 +01:00
24 lines
486 B
JavaScript
24 lines
486 B
JavaScript
import credentialedProxyHandler from "utils/proxy/handlers/credentialed";
|
|
|
|
const widget = {
|
|
api: "{url}/v1/{endpoint}",
|
|
proxyHandler: credentialedProxyHandler,
|
|
|
|
mappings: {
|
|
ip: {
|
|
endpoint: "publicip/ip",
|
|
validate: ["public_ip", "country"],
|
|
},
|
|
port_forwarded: {
|
|
endpoint: "openvpn/portforwarded",
|
|
validate: ["port"],
|
|
},
|
|
port_forwarded_v2: {
|
|
endpoint: "portforward",
|
|
validate: ["port"],
|
|
},
|
|
},
|
|
};
|
|
|
|
export default widget;
|