Commit a00a725a authored by Evren Kutar's avatar Evren Kutar

url değişikliği

parent 571ba9fd
...@@ -39,10 +39,7 @@ var app = angular.module( ...@@ -39,10 +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 () {
var dev = "http://127.0.0.1:8000/"; return {url: "http://127.0.0.1:8000/"};
var prod = "";
var ENV = "dev"; // change to prod in production
return ENV == "dev" ? {url: dev} : {url: prod};
})()). })()).
/** /**
* USER_ROLES and AUTH_EVENTS are constant for auth functions * USER_ROLES and AUTH_EVENTS are constant for auth functions
......
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