Sprint 9: add tenant-driven API resolution layer
This commit is contained in:
14
src/app/services/api-health.service.ts
Normal file
14
src/app/services/api-health.service.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { Injectable, inject } from '@angular/core';
|
||||
import { HttpClient } from '@angular/common/http';
|
||||
import { Observable } from 'rxjs';
|
||||
import { ApiConfigService } from '../core/config/api-config.service';
|
||||
|
||||
@Injectable({ providedIn: 'root' })
|
||||
export class ApiHealthService {
|
||||
private readonly http = inject(HttpClient);
|
||||
private readonly apiConfig = inject(ApiConfigService);
|
||||
|
||||
ping(): Observable<{ message: string }> {
|
||||
return this.http.get<{ message: string }>(`${this.apiConfig.getBaseUrl()}/ping`);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user