Add Medusa widget
This commit is contained in:
1 parent
a04c7677e4
commit
2a24277757
5 files changed
+71
-1
No files matched your search
@@ -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;
|
||||
Reference in new issue
Block a user