Affichage version

Signed-off-by: Gato <cedric@goutailler-olivier.fr>
This commit is contained in:
2026-05-31 16:06:34 +02:00
parent 9f5012e9ea
commit 11aba5dbd0
7 changed files with 288 additions and 2 deletions
+18
View File
@@ -0,0 +1,18 @@
import { HttpClient } from '@angular/common/http';
import { Injectable, inject } from '@angular/core';
import { Observable } from 'rxjs';
const API_BASE_URL = '/api';
export interface VersionResponse {
version: string;
}
@Injectable({ providedIn: 'root' })
export class VersionApiService {
private readonly http = inject(HttpClient);
getVersion(): Observable<VersionResponse> {
return this.http.get<VersionResponse>(`${API_BASE_URL}/version`);
}
}