"use strict";

angular.module('arethusa.core').constant('MAIN_ROUTE', {
  controller: 'MainCtrl',
  template: '<div ng-include="template"></div>',
  resolve: {
    loadConfiguration: function($http, confUrl, configurator) {
      return $http.get(confUrl(true)).then(function(res) {
        configurator.defineConfiguration(res.data);
      });
    }
  }
});

"use strict";

angular.module('arethusa.core').constant('MAIN_ROUTE', {
  controller: 'MainCtrl',
  template: '<div ng-include="template"></div>',
  resolve: {
    loadConfiguration: function($http, confUrl, configurator) {
      var url = confUrl(true);
      return $http.get(url).then(function(res) {
        configurator.defineConfiguration(res.data, url);
      });
    }
  }
});

Add the location of a conf file in main route
Add the location of a conf file in main route
