Commit 3c615278 authored by kpandey's avatar kpandey

updated

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@174978 ce508802-f39f-4f6c-b175-0d175dae99d5
parent dbe3fbe5
...@@ -11,13 +11,13 @@ import { HostUrlService } from '../host-url.service'; ...@@ -11,13 +11,13 @@ import { HostUrlService } from '../host-url.service';
@Injectable() @Injectable()
export class EcmProductDetailService { export class EcmProductDetailService {
private SERVICE_URL = '/ecm/service/category/detail/'; // URL to web service // private SERVICE_URL = '/ecm/service/L2D01/category/detail/'; // URL to web service
private SERVICE_URL = '/ecm/service';
constructor ( public hostUrlService : HostUrlService,private http: Http) {} constructor ( public hostUrlService : HostUrlService,private http: Http) {}
getItemDetail (itemCode : string): Observable<ItemDetail> { getItemDetail (itemCode : string): Observable<ItemDetail> {
let siteCode = localStorage.getItem('SITE_CODE');
let itemsUrl = this.hostUrlService.hostUrl+this.SERVICE_URL + itemCode ; let itemsUrl = this.hostUrlService.hostUrl+this.SERVICE_URL + '/' + siteCode + '/category' + '/detail' + '/' + itemCode ;
let headers = new Headers({ 'Content-Type': 'application/json' }); let headers = new Headers({ 'Content-Type': 'application/json' });
let options = new RequestOptions({ headers: headers }); let options = new RequestOptions({ headers: headers });
......
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