mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-14 00:40:30 +00:00
Use statistics endpoint for paperless-ngx
This commit is contained in:
parent
a677a507b8
commit
a488cc0115
3 changed files with 9 additions and 33 deletions
|
@ -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"
|
||||
]
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue