mirror of
https://github.com/karl0ss/homepage.git
synced 2025-05-03 14:03:40 +01:00
21 lines
387 B
JavaScript
21 lines
387 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",
|
|
"processing",
|
|
"approved",
|
|
"available",
|
|
],
|
|
},
|
|
},
|
|
};
|
|
|
|
export default widget;
|