From b6293da0fee08906ce0b497a4883d2933a308aab Mon Sep 17 00:00:00 2001 From: Marcus Ferl Date: Wed, 26 Jul 2023 12:44:37 +0200 Subject: [PATCH] changed api endpoint --- angularapp/src/app/Services/users.service.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/angularapp/src/app/Services/users.service.ts b/angularapp/src/app/Services/users.service.ts index d3a69e7..a60dd53 100644 --- a/angularapp/src/app/Services/users.service.ts +++ b/angularapp/src/app/Services/users.service.ts @@ -9,17 +9,17 @@ import { DatePipe } from '@angular/common'; }) export class UsersService { - + private apiEndpoint: string = "https://weiferl-web.azurewebsites.net/api/" constructor(private http: HttpClient, private datePipe: DatePipe) { } loadAllUsers(): Observable { - return this.http.get('https://weiferl-web.azurewebsites.net/api/getAllUsers'); + return this.http.get(this.apiEndpoint + 'getAllUsers'); } addNewUser(user: User) { - return this.http.post('https://weiferl-web.azurewebsites.net/api/addUser', user); + return this.http.post(this.apiEndpoint + 'addUser', user); } formatDates(users: User[]): User[] { return users.map(user => {