Added paperless-ngx widget

This commit is contained in:
Niklas 2022-11-25 16:05:53 +01:00
parent 69af4286a9
commit a677a507b8
6 changed files with 77 additions and 0 deletions

View file

@ -0,0 +1,25 @@
import genericProxyHandler from "utils/proxy/handlers/generic";
const widget = {
api: "{url}/api/{endpoint}",
proxyHandler: genericProxyHandler,
mappings: {
"inbox": {
endpoint: "documents/",
params: ["format", "query", "fields"],
validate: [
"count"
]
},
"documents": {
endpoint: "documents/",
params: ["format", "fields"],
validate: [
"count"
]
},
},
};
export default widget;