2023-10-17 23:26:55 -07:00
|
|
|
import synologyProxyHandler from "../../utils/proxy/handlers/synology";
|
2022-11-29 20:11:50 -08:00
|
|
|
|
|
|
|
const widget = {
|
2023-01-29 17:04:36 -08:00
|
|
|
// cgiPath and maxVersion are discovered at runtime, don't supply
|
|
|
|
api: "{url}/webapi/{cgiPath}?api={apiName}&version={maxVersion}&method={apiMethod}",
|
|
|
|
proxyHandler: synologyProxyHandler,
|
2022-11-29 20:11:50 -08:00
|
|
|
|
|
|
|
mappings: {
|
2023-10-17 23:26:55 -07:00
|
|
|
list: {
|
2023-01-29 17:04:36 -08:00
|
|
|
apiName: "SYNO.DownloadStation.Task",
|
|
|
|
apiMethod: "list&additional=transfer",
|
2023-10-17 23:26:55 -07:00
|
|
|
endpoint: "list",
|
2022-11-29 20:11:50 -08:00
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
export default widget;
|