diff --git a/support-portal-frontend/src/app/dto/custom-http-response.ts b/support-portal-frontend/src/app/dto/custom-http-response.ts new file mode 100644 index 0000000..9fce2db --- /dev/null +++ b/support-portal-frontend/src/app/dto/custom-http-response.ts @@ -0,0 +1,7 @@ +export interface CustomHttpResponse { + timestamp: Date; + httpStatusCode: number; + httpStatus: string; + reason: string; + message: string; +} diff --git a/support-portal-frontend/src/app/service/user.service.ts b/support-portal-frontend/src/app/service/user.service.ts index e3f6346..46ebaa8 100644 --- a/support-portal-frontend/src/app/service/user.service.ts +++ b/support-portal-frontend/src/app/service/user.service.ts @@ -32,9 +32,9 @@ export class UserService { .put(`${this.host}/user/${currentUsername}`, formData); } - public resetPassword(email: string): Observable { + public resetPassword(email: string): Observable { return this.httpClient - .post(`${this.host}/user/resetPassword/${email}`, null); + .post(`${this.host}/user/resetPassword/${email}`, null); } public updateProfileImage(username: string, formData: FormData): Observable> { @@ -46,9 +46,9 @@ export class UserService { }); } - public deleteUser(userId: string): Observable { + public deleteUser(userId: string): Observable { return this.httpClient - .delete(`${this.host}/user/${userId}`); + .delete(`${this.host}/user/${userId}`); } public addUsersToLocalStorage(users: User[]) { @@ -95,11 +95,5 @@ export interface UserPage { } -export interface HttpResponse { - timestamp: Date; - httpStatusCode: number; - httpStatus: string; - reason: string; - message: string; -} +