mirror of
https://github.com/karl0ss/homepage.git
synced 2025-04-29 12:03:41 +01:00
16 lines
301 B
JavaScript
16 lines
301 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"],
|
|
},
|
|
},
|
|
};
|
|
|
|
export default widget;
|