A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
RemoteVersionService
Michael Shamoon7b6dccf5ef04
diff --git a/src-ui/src/app/services/rest/remote-version.service.ts b/src-ui/src/app/services/rest/remote-version.service.tsnew file mode 100644index 000000000..a39c1f2c5--- /dev/null+++ b/src-ui/src/app/services/rest/remote-version.service.ts@@ -0,0 +1,22 @@+import { HttpClient } from '@angular/common/http'+import { Injectable } from '@angular/core'+import { map, Observable } from 'rxjs'+import { environment } from 'src/environments/environment'++export interface AppRemoteVersion {+ version: string+ greater_than_current: boolean+}++@Injectable({+ providedIn: 'root',+})+export class RemoteVersionService {+ constructor(private http: HttpClient) {}++ public checkForUpdates(): Observable<AppRemoteVersion> {+ return this.http.get<AppRemoteVersion>(+ `${environment.apiBaseUrl}remote_version/`+ )+ }+}