feat(centers && groups) : Centers and groups list (#238)

*feat(centers && groups) : Centers and groups list (#238)
This commit is contained in:
Anwesh Nayak
2018-07-28 19:20:40 +05:30
committed by GitHub
parent 8d059f9056
commit 0cdd6dbf5e
15 changed files with 384 additions and 2 deletions
+17
View File
@@ -0,0 +1,17 @@
import { Injectable } from '@angular/core';
import { HttpClient, HttpParams } from '@angular/common/http';
import { Observable } from 'rxjs';
@Injectable({
providedIn: 'root'
})
export class CentersService {
constructor(private http: HttpClient) { }
getCenters(): Observable<any> {
return this.http.get('/centers');
}
}