Add AdGuard, Bazarr, and Coin Market Cap widgets

- Allow setting HTTP method in widget.js
- Allow sending allow listed query params to proxy
This commit is contained in:
Jason Fischer 2022-09-25 14:31:41 -07:00
parent f999f4a467
commit 03fa2f86d7
No known key found for this signature in database
10 changed files with 251 additions and 9 deletions

View file

@ -0,0 +1,24 @@
import genericProxyHandler from "utils/proxies/generic";
import { asJson } from "utils/api-helpers";
const widget = {
api: "{url}/api/{endpoint}/wanted?apikey={key}",
proxyHandler: genericProxyHandler,
mappings: {
"movies": {
endpoint: "movies",
map: (data) => ({
total: asJson(data).total,
}),
},
"episodes": {
endpoint: "episodes",
map: (data) => ({
total: asJson(data).total,
}),
},
},
};
export default widget;