unmanic use generic proxy

This commit is contained in:
shamoon
2023-02-18 22:19:01 -08:00
parent b45d6240ae
commit 0666268d91
2 changed files with 3 additions and 58 deletions

View File

@@ -1,10 +1,9 @@
import unmanicProxyHandler from "./proxy";
import genericProxyHandler from "utils/proxy/handlers/generic";
import { asJson } from "utils/proxy/api-helpers";
const widget = {
api: "{url}/unmanic/api/v2/{endpoint}",
proxyHandler: unmanicProxyHandler,
proxyHandler: genericProxyHandler,
mappings: {
workers: {
@@ -16,6 +15,7 @@ const widget = {
},
pending: {
method: "POST",
body: "{}",
endpoint: "pending/tasks",
validate: [
"recordsTotal"