mirror of
https://github.com/gethomepage/homepage.git
synced 2025-12-07 09:35:54 -08:00
31 lines
603 B
JavaScript
31 lines
603 B
JavaScript
import credentialedProxyHandler from "utils/proxy/handlers/credentialed";
|
|
|
|
const widget = {
|
|
api: "{url}/api/{endpoint}",
|
|
proxyHandler: credentialedProxyHandler,
|
|
|
|
mappings: {
|
|
downloads: {
|
|
endpoint: "stats/download",
|
|
validate: ["pending"],
|
|
},
|
|
videos: {
|
|
endpoint: "stats/video",
|
|
validate: ["doc_count"],
|
|
},
|
|
channels: {
|
|
endpoint: "stats/channel",
|
|
validate: ["doc_count"],
|
|
},
|
|
playlists: {
|
|
endpoint: "stats/playlist",
|
|
validate: ["doc_count"],
|
|
},
|
|
stats: {
|
|
endpoint: "stats",
|
|
},
|
|
},
|
|
};
|
|
|
|
export default widget;
|