You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
503 B
25 lines
503 B
import genericProxyHandler from "utils/proxy/handlers/generic";
|
|
import { asJson } from "utils/proxy/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;
|