Add Medusa widget

This commit is contained in:
Ulysse Mensa committed 2023-01-16 22:39:01 +01:00
1 parent a04c7677e4
commit 2a24277757
5 files changed
+71 -1

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
import genericProxyHandler from "utils/proxy/handlers/generic";
const widget = {
api: "{url}/api/v1/{key}/{endpoint}/",
proxyHandler: genericProxyHandler,
mappings: {
stats: {
endpoint: "?cmd=shows.stats",
validate: [
"data"
]
},
future: {
endpoint: "?cmd=future",
validate: [
"data"
]
}
}
};
export default widget;