mirror of
https://github.com/gethomepage/homepage.git
synced 2026-01-14 13:12:09 +08:00
Added paperless-ngx widget
This commit is contained in:
25
src/widgets/paperlessngx/widget.js
Normal file
25
src/widgets/paperlessngx/widget.js
Normal 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;
|
||||
Reference in New Issue
Block a user