mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-16 11:36:39 +01:00
parent
14f42b8b7a
commit
c330a72188
8 changed files with 179 additions and 57 deletions
|
|
@ -40,6 +40,10 @@ export abstract class AbstractPaperlessService<T extends ObjectWithId> {
|
|||
return this.http.get<Results<T>>(this.getResourceUrl(), {params: httpParams})
|
||||
}
|
||||
|
||||
listAll(ordering?: string, extraParams?): Observable<Results<T>> {
|
||||
return this.list(1, 100000, ordering, extraParams)
|
||||
}
|
||||
|
||||
get(id: number): Observable<T> {
|
||||
return this.http.get<T>(this.getResourceUrl(id))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue