mirror of
https://github.com/gethomepage/homepage.git
synced 2026-01-11 03:12:07 +08:00
20 lines
426 B
JavaScript
20 lines
426 B
JavaScript
import credentialedProxyHandler from "utils/proxy/handlers/credentialed";
|
|
|
|
const widget = {
|
|
api: "{url}/api/v1/{endpoint}",
|
|
proxyHandler: credentialedProxyHandler,
|
|
|
|
mappings: {
|
|
"request/count": {
|
|
endpoint: "request/count",
|
|
validate: ["pending", "approved", "available"],
|
|
},
|
|
"issue/count": {
|
|
endpoint: "issue/count",
|
|
validate: ["open", "total"],
|
|
},
|
|
},
|
|
};
|
|
|
|
export default widget;
|