mirror of
https://github.com/gethomepage/homepage.git
synced 2026-01-12 20:12:09 +08:00
Add Medusa widget
This commit is contained in:
23
src/widgets/medusa/widget.js
Normal file
23
src/widgets/medusa/widget.js
Normal 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;
|
||||
Reference in New Issue
Block a user