Display all Project Contributors on About page using GitHub API (#382)

This commit is contained in:
wiz
2021-03-09 03:56:41 +09:00
committed by GitHub
parent d5cc558670
commit e32066affd
4 changed files with 45 additions and 4 deletions

View File

@@ -77,6 +77,10 @@ export class ApiService {
return this.httpClient.get<any[]>(this.apiBaseUrl + this.apiBasePath + '/api/v1/donations');
}
getContributor$(): Observable<any[]> {
return this.httpClient.get<any[]>(this.apiBaseUrl + this.apiBasePath + '/api/v1/contributors');
}
checkDonation$(orderId: string): Observable<any[]> {
return this.httpClient.get<any[]>(this.apiBaseUrl + this.apiBasePath + '/api/v1/donations/check?order_id=' + orderId);
}