Bug Fixes
This commit is contained in:
@@ -1,17 +1,17 @@
|
||||
import { HttpClient } from '@angular/common/http';
|
||||
import { Injectable } from '@angular/core';
|
||||
import { Observable } from 'rxjs';
|
||||
import { environment } from '../../environments/environment';
|
||||
import { HttpClient } from '@angular/common/http';
|
||||
import { Subscription } from '../../../../bizmatch-server/src/models/main.model';
|
||||
import { environment } from '../../environments/environment';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class SubscriptionsService {
|
||||
private apiBaseUrl = environment.apiBaseUrl;
|
||||
constructor(private http: HttpClient) { }
|
||||
constructor(private http: HttpClient) {}
|
||||
|
||||
getAllSubscriptions():Observable<Subscription[]>{
|
||||
return this.http.get<Subscription[]>(`${this.apiBaseUrl}/bizmatch/subscriptions`);
|
||||
getAllSubscriptions(id: string): Observable<Subscription[]> {
|
||||
return this.http.get<Subscription[]>(`${this.apiBaseUrl}/bizmatch/user/subscriptions/${id}`);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user