mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-08 14:38:47 +00:00
21 lines
444 B
JavaScript
21 lines
444 B
JavaScript
import credentialedProxyHandler from "utils/proxy/handlers/credentialed";
|
|
import { asJson } from "utils/proxy/api-helpers";
|
|
|
|
const widget = {
|
|
api: `{url}/api/v0/{endpoint}`,
|
|
proxyHandler: credentialedProxyHandler,
|
|
|
|
mappings: {
|
|
application: {
|
|
endpoint: "application",
|
|
},
|
|
downloads: {
|
|
endpoint: "transfers/downloads",
|
|
},
|
|
uploads: {
|
|
endpoint: "transfers/uploads",
|
|
},
|
|
},
|
|
};
|
|
|
|
export default widget;
|