Use statistics endpoint for paperless-ngx
This commit is contained in:
1 parent
a677a507b8
commit
a488cc0115
3 files changed
+9
-33
No files matched your search
@@ -5,18 +5,10 @@ const widget = {
|
||||
proxyHandler: genericProxyHandler,
|
||||
|
||||
mappings: {
|
||||
"inbox": {
|
||||
endpoint: "documents/",
|
||||
params: ["format", "query", "fields"],
|
||||
"statistics": {
|
||||
endpoint: "statistics/?format=json",
|
||||
validate: [
|
||||
"count"
|
||||
]
|
||||
},
|
||||
"documents": {
|
||||
endpoint: "documents/",
|
||||
params: ["format", "fields"],
|
||||
validate: [
|
||||
"count"
|
||||
"documents_total"
|
||||
]
|
||||
},
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user