mirror of
https://github.com/karl0ss/homepage.git
synced 2025-05-06 07:23:38 +01:00
36 lines
596 B
JavaScript
36 lines
596 B
JavaScript
import credentialedProxyHandler from "utils/proxy/handlers/credentialed";
|
|
|
|
const widget = {
|
|
api: "{url}/api/{endpoint}",
|
|
proxyHandler: credentialedProxyHandler,
|
|
|
|
mappings: {
|
|
downloads: {
|
|
endpoint: "download",
|
|
validate: [
|
|
"paginate",
|
|
]
|
|
},
|
|
videos: {
|
|
endpoint: "video",
|
|
validate: [
|
|
"paginate",
|
|
]
|
|
},
|
|
channels: {
|
|
endpoint: "channel",
|
|
validate: [
|
|
"paginate",
|
|
]
|
|
},
|
|
playlists: {
|
|
endpoint: "playlist",
|
|
validate: [
|
|
"paginate",
|
|
]
|
|
},
|
|
},
|
|
};
|
|
|
|
export default widget;
|