Make relative path for http request

This commit is contained in:
manzerbredes 2016-02-05 20:52:13 +01:00
parent cca5df968e
commit e9e7ddf9b1

View file

@ -9,7 +9,7 @@ identity.requestParser = {}; // Parser part
identity.request.login=function($http,username, password,projectname){
var requestResultObject={};
return $http.post('http://localhost.istic-openstack/server/index.php',
return $http.post('../server/index.php',
$.param({"task" : "Authenticate", "user" : username, "password" : password, "project" : projectname}),
{headers: {'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8'}});
};