initial release
This commit is contained in:
17
bizmatch/src/app/services/subscriptions.service.ts
Normal file
17
bizmatch/src/app/services/subscriptions.service.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { Observable } from 'rxjs';
|
||||
import { Subscription } from '../models/main.model';
|
||||
import { environment } from '../../environments/environment';
|
||||
import { HttpClient } from '@angular/common/http';
|
||||
|
||||
@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`);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user