mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-11-23 23:49:08 -06:00
Chore: update to Angular 20 (#10273)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { HttpClient } from '@angular/common/http'
|
||||
import { Injectable } from '@angular/core'
|
||||
import { Injectable, inject } from '@angular/core'
|
||||
import { Observable } from 'rxjs'
|
||||
import { environment } from 'src/environments/environment'
|
||||
|
||||
@@ -7,7 +7,7 @@ import { environment } from 'src/environments/environment'
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class LogService {
|
||||
constructor(private http: HttpClient) {}
|
||||
private http = inject(HttpClient)
|
||||
|
||||
list(): Observable<string[]> {
|
||||
return this.http.get<string[]>(`${environment.apiBaseUrl}logs/`)
|
||||
|
||||
Reference in New Issue
Block a user