mirror of
https://github.com/gethomepage/homepage.git
synced 2025-12-06 21:57:48 +01:00
- Migrate DiskStation and DownloadStation to use new proxy - Move DiskStation proxy UI logic into component
18 lines
462 B
JavaScript
18 lines
462 B
JavaScript
import synologyProxyHandler from '../../utils/proxy/handlers/synology'
|
|
|
|
const widget = {
|
|
// cgiPath and maxVersion are discovered at runtime, don't supply
|
|
api: "{url}/webapi/{cgiPath}?api={apiName}&version={maxVersion}&method={apiMethod}",
|
|
proxyHandler: synologyProxyHandler,
|
|
|
|
mappings: {
|
|
"list": {
|
|
apiName: "SYNO.DownloadStation.Task",
|
|
apiMethod: "list&additional=transfer",
|
|
endpoint: "list"
|
|
},
|
|
},
|
|
};
|
|
|
|
export default widget;
|