This commit is contained in:
Nikolaos Laskaris 2017-10-27 12:52:27 +03:00
parent 115c298da2
commit 3c2c9ea5bd
3 changed files with 9 additions and 7 deletions

View File

@ -137,7 +137,7 @@ SaveNewDmp(){
this.dmp.project = {"id":this.dmp.project}; this.dmp.project = {"id":this.dmp.project};
this.dmp["version"] = 1; this.dmp["version"] = 1;
this.serverService.createDmpForProject(this.dmp) this.serverService.createDmpForCurrentUser(this.dmp)
.subscribe( .subscribe(
response =>{ response =>{
console.log("response"); console.log("response");

View File

@ -15,15 +15,17 @@ export class RestBase {
this.xml2jsonOBJ = new X2JS(); this.xml2jsonOBJ = new X2JS();
} }
/*
protocol: string = "http"; protocol: string = "http";
hostname: string ="dl010.madgik.di.uoa.gr" ;//"localhost";//"dl010.madgik.di.uoa.gr";// hostname: string ="dl010.madgik.di.uoa.gr" ;//"localhost";//"dl010.madgik.di.uoa.gr";//
port: number = 8080;//8080;// port: number = 8080;//8080;//
webappname: string = "dmp-backend";//"dmp-backend-new";// webappname: string = "dmp-backend";//"dmp-backend-new";//
*/
// protocol: string = "http"; protocol: string = "http";
// hostname: string ="dionysus.di.uoa.gr" ; hostname: string = "dionysus.di.uoa.gr" ;
// port: number = 7070; port: number = 7070;
// webappname: string = "dmp-backend";//"dmp-backend-new";// webappname: string = "dmp-backend";
proxyPath : string = this.protocol+"://"+this.hostname+":"+this.port+"/"+this.webappname+"/proxy/"; proxyPath : string = this.protocol+"://"+this.hostname+":"+this.port+"/"+this.webappname+"/proxy/";

View File

@ -105,9 +105,9 @@ export class ServerService {
} }
public createDmpForProject(data:any){ public createDmpForCurrentUser(data:any){
debugger; debugger;
return this.restBase.post("dmp/create", data); return this.restBase.post("dmp/createofuser", data);
} }