2022-10-31 15:23:34 +02:00
|
|
|
import credentialedProxyHandler from "utils/proxy/handlers/credentialed";
|
|
|
|
|
|
|
|
const widget = {
|
|
|
|
api: "{url}/api/{endpoint}",
|
|
|
|
proxyHandler: credentialedProxyHandler,
|
|
|
|
|
|
|
|
mappings: {
|
|
|
|
downloads: {
|
|
|
|
endpoint: "download",
|
2022-10-26 08:35:38 -07:00
|
|
|
validate: [
|
|
|
|
"paginate",
|
|
|
|
]
|
2022-10-31 15:23:34 +02:00
|
|
|
},
|
|
|
|
videos: {
|
|
|
|
endpoint: "video",
|
2022-10-26 08:35:38 -07:00
|
|
|
validate: [
|
|
|
|
"paginate",
|
|
|
|
]
|
2022-10-31 15:23:34 +02:00
|
|
|
},
|
|
|
|
channels: {
|
|
|
|
endpoint: "channel",
|
2022-10-26 08:35:38 -07:00
|
|
|
validate: [
|
|
|
|
"paginate",
|
|
|
|
]
|
2022-10-31 15:23:34 +02:00
|
|
|
},
|
|
|
|
playlists: {
|
|
|
|
endpoint: "playlist",
|
2022-10-26 08:35:38 -07:00
|
|
|
validate: [
|
|
|
|
"paginate",
|
|
|
|
]
|
2022-10-31 15:23:34 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
export default widget;
|