mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-07-30 18:27:45 -05:00
20 lines
526 B
TypeScript
20 lines
526 B
TypeScript
import { HttpClient } from '@angular/common/http'
|
|
import { Injectable } from '@angular/core'
|
|
import { Observable } from 'rxjs'
|
|
import { environment } from 'src/environments/environment'
|
|
|
|
@Injectable({
|
|
providedIn: 'root',
|
|
})
|
|
export class LogService {
|
|
constructor(private http: HttpClient) {}
|
|
|
|
list(): Observable<string[]> {
|
|
return this.http.get<string[]>(`${environment.apiBaseUrl}logs/`)
|
|
}
|
|
|
|
get(id: string): Observable<string[]> {
|
|
return this.http.get<string[]>(`${environment.apiBaseUrl}logs/${id}/`)
|
|
}
|
|
}
|