Search API

This commit is contained in:
softsimon committed 2022-07-08 18:55:23 +02:00
1 parent 7f6a0c3c15
commit 925e5c4758
7 files changed
+101 -11

No files matched your search

+5
View File
@@ -240,4 +240,9 @@ export class ApiService {
return this.httpClient.get<any[]>(this.apiBaseUrl + this.apiBasePath + '/lightning/api/v1/channels/txids/', { params });
}
lightningSearch$(searchText: string): Observable<any[]> {
let params = new HttpParams().set('searchText', searchText);
return this.httpClient.get<any[]>(this.apiBaseUrl + this.apiBasePath + '/lightning/api/v1/search', { params });
}
}