feat: add view shares account page (#868)

Fixes: #224
This commit is contained in:
Karan Takalkar
2020-06-13 01:54:44 +05:30
committed by GitHub
parent de701543e1
commit db248a8037
28 changed files with 972 additions and 1 deletions
+26
View File
@@ -0,0 +1,26 @@
/** Angular Imports */
import { Injectable } from '@angular/core';
import { HttpClient, HttpParams } from '@angular/common/http';
/** rxjs Imports */
import { Observable } from 'rxjs';
/**
* Shares Service.
*/
@Injectable({
providedIn: 'root'
})
export class SharesService {
constructor(private http: HttpClient) {}
/**
* @param accountId Shares Account Id of account to get data for.
* @returns {Observable<any>} Shares data.
*/
getSharesAccountData(accountId: string): Observable<any> {
return this.http.get(`/accounts/share/${accountId}`);
}
}