*/
import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
-import { Observable } from 'rxjs';
@Injectable()
export class SignalService {
- constructor(private http: HttpClient) {
+ constructor(private httpClient: HttpClient) {
+ // injects to variable httpClient
}
getAll() {
- return this.http.get('api/e2mgr/setup');
+ return this.httpClient.get('api/e2mgr/setup');
}
x2Setup(req) {
- return this.http.post('api/e2mgr/x2Setup', req);
+ return this.httpClient.post('api/e2mgr/x2Setup', req);
}
endcSetup(req) {
- return this.http.post('api/e2mgr/endcSetup', req);
+ return this.httpClient.post('api/e2mgr/endcSetup', req);
}
}