'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_');
  }]);

@@ -249,17 +249,20 @@
 s://
-ff
+draftaid
 -api
--go
 .her

change remote URL