18 lines
577 B
TypeScript
18 lines
577 B
TypeScript
import { Injectable } from '@angular/core';
|
|
import { Observable } from 'rxjs';
|
|
import { environment } from '../../environments/environment';
|
|
import { HttpClient } from '@angular/common/http';
|
|
import { Subscription } from '../../../../common-models/src/main.model';
|
|
|
|
@Injectable({
|
|
providedIn: 'root'
|
|
})
|
|
export class SubscriptionsService {
|
|
private apiBaseUrl = environment.apiBaseUrl;
|
|
constructor(private http: HttpClient) { }
|
|
|
|
getAllSubscriptions():Observable<Subscription[]>{
|
|
return this.http.get<Subscription[]>(`${this.apiBaseUrl}/bizmatch/subscriptions`);
|
|
}
|
|
}
|