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 => {