mirror of
https://github.com/gethomepage/homepage.git
synced 2026-01-15 05:42:08 +08:00
unmanic use generic proxy
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user