lst97 / simple-receipt-manager-frontend

0 stars 0 forks source link

group.service #2

Open lst97 opened 1 year ago

lst97 commented 1 year ago
// TODO: fix duplicated subscribe call
  getGroupsName(): Observable<any> {
    let observable = this.http.get<any>(
      `${this.config.apiEndpoint}/groups_name`
    );
    observable.subscribe((response) => {
      this._constructSearchBar(response);
    });
    return observable;
  }