Commit 1c90e1f5 authored by prumde's avatar prumde

Updated profile-info.service.ts


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@174529 ce508802-f39f-4f6c-b175-0d175dae99d5
parent b6c467f7
......@@ -8,6 +8,7 @@ import { Store } from '@ngrx/store';
import {AppState} from '../ecm-store/reducers';
import { ProfileActions} from '../ecm-store/actions';
import { Profile } from './profile-manager/profile.model';
import { HostUrlService } from '../host-url.service';
@Injectable()
export class ProfileInfoService {
......@@ -16,7 +17,7 @@ export class ProfileInfoService {
profile: Profile;
constructor(private http: Http, private store: Store<AppState>, private profileActions: ProfileActions) { }
constructor(public hostUrlService : HostUrlService,private http: Http, private store: Store<AppState>, private profileActions: ProfileActions) { }
fetchUserInfo(): Observable<Profile> {
......@@ -24,7 +25,7 @@ export class ProfileInfoService {
let headers = new Headers( { 'Content-Type': 'application/json' });
let options = new RequestOptions( { headers: headers });
return this.http.get(this.userActionUrl, options)
return this.http.get(this.hostUrlService.hostUrl+this.userActionUrl, 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