1 import { Injectable } from '@angular/core';
3 import { AuthHttp, AuthService } from '../shared';
6 export class AccountService {
7 private static BASE_USERS_URL = '/api/v1/users/';
9 constructor(private authHttp: AuthHttp, private authService: AuthService) { }
11 changePassword(newPassword: string) {
12 const url = AccountService.BASE_USERS_URL + this.authService.getUser().id;
17 return this.authHttp.put(url, body);