refactor api services #44

Merged
ptran merged 1 commits from refactor/api-usage into main 2025-01-22 08:03:33 +00:00
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ import {Employee} from "../employee/Employee";
export default class EmployeeApiService {
private http: HttpClient = inject(HttpClient);
private static readonly BASE_URL = 'http://localhost:8089';
private static readonly BASE_URL = '/backend';
public getById(id: number): Observable<Employee> {
return this.http.get(`${EmployeeApiService.BASE_URL}/employees/${id}`)

View File

@ -11,7 +11,7 @@ import {Employee} from "../employee/Employee";
export default class QualificationService {
private http: HttpClient = inject(HttpClient);
private static readonly BASE_URL = 'http://localhost:8089';
private static readonly BASE_URL = '/backend';
public getAll(): Observable<Qualification[]> {
return this.http.get<Qualification[]>(`${QualificationService.BASE_URL}/qualifications`).pipe(