"use strict";

angular.module('arethusa.core').constant('CONF_ROUTE', {
  controller: 'ConfEditorCtrl',
  templateUrl: 'templates/conf_editor.html',
  resolve: {
    load: function($http, confUrl, configurator) {
      var url = confUrl();
      if (url) {
        return $http.get(url).then(function(res) {
          configurator.defineConfiguration(res.data, url);
        });
      } else {
        return configurator.loadConfTemplate;
      }
    }
  }
});

"use strict";

angular.module('arethusa.core').constant('CONF_ROUTE', {
  controller: 'ConfEditorCtrl',
  templateUrl: 'templates/conf_editor.html',
  resolve: {
    load: function($http, configurator) {
      var url = './static/configs/conf_editor/1.json';
      return $http.get(url).then(function(res) {
        configurator.defineConfiguration(res.data, url);
      });
    }
  }
});

Load a specific confEditor conf file in conf route
Load a specific confEditor conf file in conf route
