From 3c2c9ea5bddd8d83f24aafd7b3161284dde8ee2c Mon Sep 17 00:00:00 2001 From: Nikolaos Laskaris Date: Fri, 27 Oct 2017 12:52:27 +0300 Subject: [PATCH] minor --- dmp-frontend/src/app/dmps/dmp.component.ts | 2 +- dmp-frontend/src/app/services/rest-base.ts | 10 ++++++---- dmp-frontend/src/app/services/server.service.ts | 4 ++-- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/dmp-frontend/src/app/dmps/dmp.component.ts b/dmp-frontend/src/app/dmps/dmp.component.ts index f33ff88dc..3e455eb38 100644 --- a/dmp-frontend/src/app/dmps/dmp.component.ts +++ b/dmp-frontend/src/app/dmps/dmp.component.ts @@ -137,7 +137,7 @@ SaveNewDmp(){ this.dmp.project = {"id":this.dmp.project}; this.dmp["version"] = 1; - this.serverService.createDmpForProject(this.dmp) + this.serverService.createDmpForCurrentUser(this.dmp) .subscribe( response =>{ console.log("response"); diff --git a/dmp-frontend/src/app/services/rest-base.ts b/dmp-frontend/src/app/services/rest-base.ts index f793da4ee..467701587 100644 --- a/dmp-frontend/src/app/services/rest-base.ts +++ b/dmp-frontend/src/app/services/rest-base.ts @@ -15,15 +15,17 @@ export class RestBase { this.xml2jsonOBJ = new X2JS(); } + /* protocol: string = "http"; hostname: string ="dl010.madgik.di.uoa.gr" ;//"localhost";//"dl010.madgik.di.uoa.gr";// port: number = 8080;//8080;// webappname: string = "dmp-backend";//"dmp-backend-new";// + */ - // protocol: string = "http"; - // hostname: string ="dionysus.di.uoa.gr" ; - // port: number = 7070; - // webappname: string = "dmp-backend";//"dmp-backend-new";// + protocol: string = "http"; + hostname: string = "dionysus.di.uoa.gr" ; + port: number = 7070; + webappname: string = "dmp-backend"; proxyPath : string = this.protocol+"://"+this.hostname+":"+this.port+"/"+this.webappname+"/proxy/"; diff --git a/dmp-frontend/src/app/services/server.service.ts b/dmp-frontend/src/app/services/server.service.ts index d42b10e0c..faa9210fa 100644 --- a/dmp-frontend/src/app/services/server.service.ts +++ b/dmp-frontend/src/app/services/server.service.ts @@ -105,9 +105,9 @@ export class ServerService { } - public createDmpForProject(data:any){ + public createDmpForCurrentUser(data:any){ debugger; - return this.restBase.post("dmp/create", data); + return this.restBase.post("dmp/createofuser", data); }