mirror of
https://github.com/karl0ss/homepage.git
synced 2025-05-02 13:33:40 +01:00
27 lines
521 B
JavaScript
27 lines
521 B
JavaScript
import credentialedProxyHandler from "utils/proxy/handlers/credentialed";
|
|
|
|
const widget = {
|
|
api: "{url}/api/{endpoint}",
|
|
proxyHandler: credentialedProxyHandler,
|
|
|
|
mappings: {
|
|
version: {
|
|
endpoint: "server-info/version",
|
|
},
|
|
statistics: {
|
|
endpoint: "server-info/statistics",
|
|
},
|
|
stats: {
|
|
endpoint: "server-info/stats",
|
|
},
|
|
version_v2: {
|
|
endpoint: "server/version",
|
|
},
|
|
statistics_v2: {
|
|
endpoint: "server/statistics",
|
|
},
|
|
},
|
|
};
|
|
|
|
export default widget;
|