Newer
Older
import { Injectable } from '@angular/core';
import { HttpClient, HttpResponse } from '@angular/common/http';
import { Observable } from 'rxjs/Observable';
import {SERVER_API_URL, SERVER_API_URL_COMS} from '../../app.constants';
@Injectable()
export class AccountService {
constructor(private http: HttpClient) { }
return this.http.post(SERVER_API_URL_COMS+ '/login', {observe : 'response'});
return this.http.post(SERVER_API_URL_COMS + '', account, {observe: 'response'});