mirror of
https://github.com/gethomepage/homepage.git
synced 2025-12-24 05:48:08 +08:00
22 lines
444 B
JavaScript
22 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;
|