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["version"] = 1;
this.serverService.createDmpForProject(this.dmp)
this.serverService.createDmpForCurrentUser(this.dmp)
.subscribe(
response =>{
console.log("response");

View File

@ -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/";

View File

@ -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);
}