mirror of
https://github.com/karl0ss/homepage.git
synced 2025-05-02 13:33:40 +01:00
18 lines
334 B
JavaScript
18 lines
334 B
JavaScript
import credentialedProxyHandler from "utils/proxy/handlers/credentialed";
|
|
|
|
const widget = {
|
|
api: "{url}/api/{endpoint}",
|
|
proxyHandler: credentialedProxyHandler,
|
|
|
|
mappings: {
|
|
"statistics": {
|
|
endpoint: "statistics/?format=json",
|
|
validate: [
|
|
"documents_total"
|
|
]
|
|
},
|
|
},
|
|
};
|
|
|
|
export default widget;
|