mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-21 05:56:40 +01:00
21 lines
533 B
TypeScript
21 lines
533 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}/`)
|
|
}
|
|
}
|