'use strict';

/* App Module */

var ffApp = angular.module('ffApp', [
  'ngRoute',
  'ngResource',

  'LocalStorageModule',

  'ffControllers',
  'ffFilters',
  'ffServices',
  'ffResources'
]);

// Constants
ffApp.constant('REMOTE_HOST_URL','https://ff-api-go.herokuapp.com/')
     .constant('LOCAL_HOST_URL','http://localhost:8080/')
     .constant('USE_LOCAL_HOST', false);

// Routes
ffApp.config(['$routeProvider',
  function($routeProvider) {
    $routeProvider.
      when('/rankings', {
        templateUrl: 'templates/rankings.html',
        controller: 'RankingsCtrl'
      }).
      when('/draft-aid', {
        templateUrl: 'templates/draft-aid.html',
        controller: 'DraftAidCtrl'
      }).
      when('/about', {
        templateUrl: 'templates/about.html'
      }).
      otherwise({
        redirectTo: '/draft-aid'
      });
  }]);

// Local Storage Prefix
ffApp.config(['localStorageServiceProvider',
  function(localStorageServiceProvider){
    localStorageServiceProvider.setPrefix('jayzhengff_');
  }]);

'use strict';

/* App Module */

var ffApp = angular.module('ffApp', [
  'ngRoute',
  'ngResource',

  'LocalStorageModule',

  'ffControllers',
  'ffFilters',
  'ffServices',
  'ffResources'
]);

// Constants
ffApp.constant('REMOTE_HOST_URL','https://draftaid-api.herokuapp.com/')
     .constant('LOCAL_HOST_URL','http://localhost:8080/')
     .constant('USE_LOCAL_HOST', false);

// Routes
ffApp.config(['$routeProvider',
  function($routeProvider) {
    $routeProvider.
      when('/rankings', {
        templateUrl: 'templates/rankings.html',
        controller: 'RankingsCtrl'
      }).
      when('/draft-aid', {
        templateUrl: 'templates/draft-aid.html',
        controller: 'DraftAidCtrl'
      }).
      when('/about', {
        templateUrl: 'templates/about.html'
      }).
      otherwise({
        redirectTo: '/draft-aid'
      });
  }]);

// Local Storage Prefix
ffApp.config(['localStorageServiceProvider',
  function(localStorageServiceProvider){
    localStorageServiceProvider.setPrefix('jayzhengff_');
  }]);

change remote URL