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 update_available: boolean } @Injectable({ providedIn: 'root', }) export class RemoteVersionService { constructor(private http: HttpClient) {} public checkForUpdates(): Observable { return this.http.get( `${environment.apiBaseUrl}remote_version/` ) } }