blob: 80cb8609f9057cdf8c38c2ef7e03a4e703eb92e6 [file] [log] [blame]
import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { Observable } from 'rxjs';
import { apiURL } from 'src/environments/environment';
import { PlatformType } from '../../types/PlatformType';
@Injectable({
providedIn: 'root'
})
export class PlatformTypesService {
constructor (private http: HttpClient) { }
getFilteredTypes(filter: string, branchId: string): Observable<PlatformType[]> {
return this.http.get<PlatformType[]>(apiURL + "/mim/branch/" + branchId + "/types/filter/" + filter);
}
}