feat: add reports list page (#561)

Fixes: #232
This commit is contained in:
Karan Takalkar
2020-04-27 02:08:28 +05:30
committed by GitHub
parent ee4329ed21
commit 9ab6481406
9 changed files with 296 additions and 6 deletions
+28
View File
@@ -0,0 +1,28 @@
/** Angular Imports */
import { Injectable } from '@angular/core';
import { HttpClient, HttpParams } from '@angular/common/http';
/** rxjs Imports */
import { Observable } from 'rxjs';
/**
* Reports service.
*/
@Injectable({
providedIn: 'root'
})
export class ReportsService {
/**
* @param {HttpClient} http Http Client to send requests.
*/
constructor(private http: HttpClient) { }
/**
* @returns {Observable<any>} Reports data
*/
getReports(): Observable<any> {
return this.http.get('/reports');
}
}