Added more api data

This commit is contained in:
2017-04-05 12:35:20 +02:00
parent f5381f0cc2
commit d773389a4b
6 changed files with 9 additions and 9 deletions
+2 -2
View File
@@ -16,11 +16,11 @@ export class DataService {
constructor(private http : Http){}
get(): Observable<GraphData> {
get(id:string): Observable<GraphData> {
let lineChartData$ =
//<LineData>( {data: [65, 59, 80, 81, 56, 55, 40], label: 'Series A'} );
this.http
.get((`${this.baseUrl}`)
.get((`${this.baseUrl}/${id}`)
, {headers: this.getHeaders()})
.map(mapData);