Commit 78a6e18b authored by kpandey's avatar kpandey

updated

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@174988 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 9d2e8402
......@@ -10,15 +10,17 @@ import { HostUrlService } from '../../host-url.service';
@Injectable()
export class EcmTrendProductService {
private trendsUrl = '/ecm/service/category/current-trends'; // URL to web service
// private trendsUrl = '/ecm/service/L2D01/category/current-trends'; // URL to web service
private trendsUrl = '/ecm/service';
constructor (private http: Http,public hostUrlService : HostUrlService) {}
getTrending(): Observable<ItemDetail[]> {
let headers = new Headers( { 'Content-Type': 'application/json' });
let options = new RequestOptions( { headers: headers });
return this.http.get( this.hostUrlService.hostUrl+this.trendsUrl, options )
let siteCode = localStorage.getItem('SITE_CODE');
return this.http.get( this.hostUrlService.hostUrl+this.trendsUrl + '/' + siteCode + '/category' + '/current-trends', options )
.map( (res) => this.extractData(res) )
.catch( this.handleError );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment