Skip to content

Commit

Permalink
Fix wrong url
Browse files Browse the repository at this point in the history
As PHOENICIS_API  is this "api/v5.0/" , being the base url for API calls when called by other modules like for news it resolves to
"api/v5.0//news/:id" or for apps like "api/v5.0//apps/:id" etc.
Probable fix for PhoenicisOrg#20
  • Loading branch information
ajiteshr7 authored May 3, 2018
1 parent 86b219c commit aae8ef4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ var angular = require("angular");

module.exports = {
angularModule: angular.module("PhoenicisConfig", [])
.constant("PHOENICIS_API", "api/v5.0/")
.constant("PHOENICIS_API", "api/v5.0")
.constant("ALLOWED_LOCALES", ["en", "fr"])

.factory("CurrentLocale", ['$location', 'ALLOWED_LOCALES', function($location, ALLOWED_LOCALES) {
Expand All @@ -14,4 +14,4 @@ module.exports = {
return navigator.language || navigator.userLanguage;
}
}])
};
};

0 comments on commit aae8ef4

Please sign in to comment.