1
|
import {Injectable} from '@angular/core';
|
2
|
import {Http} from '@angular/http';
|
3
|
import {HttpClient} from "@angular/common/http";
|
4
|
import{EnvProperties} from '../../utils/properties/env-properties';
|
5
|
|
6
|
@Injectable()
|
7
|
export class SearchCommunityDataprovidersService {
|
8
|
constructor(private http: HttpClient ) {}
|
9
|
|
10
|
searchDataproviders (properties:EnvProperties, communityId: string):any {
|
11
|
let url = properties.communityAPI+communityId+"/contentproviders";
|
12
|
|
13
|
return this.http.get((properties.useCache)? (properties.cacheUrl+encodeURIComponent(url)): url);
|
14
|
//.map(res => <any> res.json())
|
15
|
}
|
16
|
}
|