Allow setting Transmission rpcUrl
This commit is contained in:
1 parent
0904776971
commit
66dabe9872
2 files changed
+4
-2
No files matched your search
@@ -33,7 +33,9 @@ export default async function transmissionProxyHandler(req, res) {
|
||||
cache.put(`${headerCacheKey}.${service}`, headers);
|
||||
}
|
||||
|
||||
const url = new URL(formatApiCall(widgets[widget.type].api, { endpoint, ...widget }));
|
||||
const api = `${widget.url}${widget.rpcUrl || widgets[widget.type].rpcUrl}rpc`;
|
||||
|
||||
const url = new URL(formatApiCall(api, { endpoint, ...widget }));
|
||||
const csrfHeaderName = "x-transmission-session-id";
|
||||
|
||||
const method = "POST";
|
||||
|
||||
Reference in new issue
Block a user