mirror of
https://github.com/gethomepage/homepage.git
synced 2025-12-24 05:48:08 +08:00
Some checks failed
Crowdin Action / Crowdin Sync (push) Has been cancelled
Docker CI / Linting Checks (push) Has been cancelled
Docker CI / Docker Build & Push (push) Has been cancelled
Repository Maintenance / Stale (push) Has been cancelled
Repository Maintenance / Lock Old Threads (push) Has been cancelled
Repository Maintenance / Close Answered Discussions (push) Has been cancelled
Repository Maintenance / Close Outdated Discussions (push) Has been cancelled
Repository Maintenance / Close Unsupported Feature Requests (push) Has been cancelled
Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
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;
|