Commit 017fb515 authored by kpandey's avatar kpandey

updated

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@175085 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 51b8db3a
...@@ -47,11 +47,13 @@ export class ECMSigninService { ...@@ -47,11 +47,13 @@ export class ECMSigninService {
fetchUserData() { fetchUserData() {
let userdataUrl = '/ecm/service/feeds/userdata'; // URL to Web Service // let userdataUrl = '/ecm/service/feeds/userdata'; // URL to Web Service
let userdataUrl = '/ecm/service/feeds';
let headers = new Headers({ 'Content-Type': 'application/json' }); let headers = new Headers({ 'Content-Type': 'application/json' });
let siteCode = localStorage.getItem('SITE_CODE');
let options = new RequestOptions({ headers: headers }); let options = new RequestOptions({ headers: headers });
console.log( "Fetch user data...." + this.hostUrlService.hostUrl+userdataUrl); console.log( "Fetch user data...." + this.hostUrlService.hostUrl+userdataUrl);
return this.http.post( this.hostUrlService.hostUrl+userdataUrl, {}, options ) return this.http.post( this.hostUrlService.hostUrl+userdataUrl+'/'+siteCode+'/userdata', {}, options )
.map(this.extractData) .map(this.extractData)
.catch(this.handleError); .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