Add Medusa widget

This commit is contained in:
Ulysse Mensa
2023-01-16 22:38:44 +01:00
parent a04c7677e4
commit 2a24277757
5 changed files with 71 additions and 1 deletions

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;