Commit 5d272471 authored by Evren Kutar's avatar Evren Kutar

port change

parent 13842038
...@@ -39,7 +39,7 @@ var app = angular.module( ...@@ -39,7 +39,7 @@ var app = angular.module(
* Based on the environment it changes from dev to prod * Based on the environment it changes from dev to prod
*/ */
constant("RESTURL", (function () { constant("RESTURL", (function () {
return {url: "http://127.0.0.1:8000/"}; return {url: "http://127.0.0.1:9001/"};
})()). })()).
/** /**
* USER_ROLES and AUTH_EVENTS are constant for auth functions * USER_ROLES and AUTH_EVENTS are constant for auth functions
......
...@@ -29,11 +29,11 @@ form_generator.factory('Generator', function ($http, $q, $log, $timeout, RESTURL ...@@ -29,11 +29,11 @@ form_generator.factory('Generator', function ($http, $q, $log, $timeout, RESTURL
//} //}
console.log(getParams); console.log(getParams);
return $http return $http
.post(RESTURL.url + url, data=getParams) .post(RESTURL.url + url, getParams)
.then(function (res) { .then(function (res) {
if (res.status == 200) { if (res.status == 200) {
// todo: remove 0 index with real api console.log(res);
return generator.generate(res.data[0]); return generator.generate(res.data);
} }
// todo: cover all other exceptions (4xx, 5xx) // todo: cover all other exceptions (4xx, 5xx)
}); });
......
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