mirror of
https://github.com/gethomepage/homepage.git
synced 2026-03-27 11:58:04 -04:00
24 lines
479 B
JavaScript
24 lines
479 B
JavaScript
import credentialedProxyHandler from "utils/proxy/handlers/credentialed";
|
|
|
|
const widget = {
|
|
api: "{url}/api/{endpoint}",
|
|
proxyHandler: credentialedProxyHandler,
|
|
|
|
mappings: {
|
|
today: {
|
|
endpoint: "v2/portfolio/performance?range=1d",
|
|
},
|
|
year: {
|
|
endpoint: "v2/portfolio/performance?range=1y",
|
|
},
|
|
max: {
|
|
endpoint: "v2/portfolio/performance?range=max",
|
|
},
|
|
userInfo: {
|
|
endpoint: "v1/user",
|
|
},
|
|
},
|
|
};
|
|
|
|
export default widget;
|