From 9d22662cf11b684ee119ba3d9365e3182e8ba10d Mon Sep 17 00:00:00 2001 From: Constantin Simonis Date: Wed, 22 Jan 2025 08:03:32 +0000 Subject: [PATCH] refactor api services (#44) Reviewed-on: http://git.simonis.lol/angular/ems-frontend/pulls/44 Reviewed-by: Huy Co-authored-by: Constantin Simonis Co-committed-by: Constantin Simonis --- src/app/services/employee-api.service.ts | 2 +- src/app/services/qualification.service.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/services/employee-api.service.ts b/src/app/services/employee-api.service.ts index b8e6d8b..993f05f 100644 --- a/src/app/services/employee-api.service.ts +++ b/src/app/services/employee-api.service.ts @@ -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 { return this.http.get(`${EmployeeApiService.BASE_URL}/employees/${id}`) diff --git a/src/app/services/qualification.service.ts b/src/app/services/qualification.service.ts index b6ce426..711f52c 100644 --- a/src/app/services/qualification.service.ts +++ b/src/app/services/qualification.service.ts @@ -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 { return this.http.get(`${QualificationService.BASE_URL}/qualifications`).pipe(