aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/app/_services/user-info.service.ts
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/app/_services/user-info.service.ts')
-rw-r--r--frontend/src/app/_services/user-info.service.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/frontend/src/app/_services/user-info.service.ts b/frontend/src/app/_services/user-info.service.ts
index 16fc90a2..5d3394f6 100644
--- a/frontend/src/app/_services/user-info.service.ts
+++ b/frontend/src/app/_services/user-info.service.ts
@@ -1,7 +1,7 @@
import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { Observable } from 'rxjs';
-import API_SETTINGS from '../../config.json';
+import { Configuration } from '../configuration.service';
import User from '../_data/User';
import { AuthService } from './auth.service';
@@ -13,18 +13,18 @@ export class UserInfoService {
constructor(private http: HttpClient, private authService: AuthService) { }
getUserInfo(): Observable<User> {
- return this.http.get<User>(`${API_SETTINGS.apiURL}/user/myprofile`, { headers: this.authService.authHeader() });
+ return this.http.get<User>(`${Configuration.settings.apiURL}/user/myprofile`, { headers: this.authService.authHeader() });
}
changeUserInfo(user: User): any {
- return this.http.put(`${API_SETTINGS.apiURL}/user/changeinfo`, user, { headers: this.authService.authHeader() });
+ return this.http.put(`${Configuration.settings.apiURL}/user/changeinfo`, user, { headers: this.authService.authHeader() });
}
changeUserPassword(passwordArray: string[]): any {
- return this.http.put(`${API_SETTINGS.apiURL}/user/changepass`, passwordArray, { headers: this.authService.authHeader(), responseType: 'text' });
+ return this.http.put(`${Configuration.settings.apiURL}/user/changepass`, passwordArray, { headers: this.authService.authHeader(), responseType: 'text' });
}
deleteUser(): any {
- return this.http.delete(`${API_SETTINGS.apiURL}/user/deleteprofile`, { headers: this.authService.authHeader() });
+ return this.http.delete(`${Configuration.settings.apiURL}/user/deleteprofile`, { headers: this.authService.authHeader() });
}
}