aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/shared')
-rw-r--r--client/src/app/shared/users/user.service.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/client/src/app/shared/users/user.service.ts b/client/src/app/shared/users/user.service.ts
index 365a21df7..e6dc3dbf8 100644
--- a/client/src/app/shared/users/user.service.ts
+++ b/client/src/app/shared/users/user.service.ts
@@ -39,6 +39,16 @@ export class UserService {
39 ) 39 )
40 } 40 }
41 41
42 deleteMe () {
43 const url = UserService.BASE_USERS_URL + 'me'
44
45 return this.authHttp.delete(url)
46 .pipe(
47 map(this.restExtractor.extractDataBool),
48 catchError(err => this.restExtractor.handleError(err))
49 )
50 }
51
42 changeAvatar (avatarForm: FormData) { 52 changeAvatar (avatarForm: FormData) {
43 const url = UserService.BASE_USERS_URL + 'me/avatar/pick' 53 const url = UserService.BASE_USERS_URL + 'me/avatar/pick'
44 54