diff --git a/00-Starter-Seed/app.js b/00-Starter-Seed/app.js index f383bee..78b1013 100644 --- a/00-Starter-Seed/app.js +++ b/00-Starter-Seed/app.js @@ -37,10 +37,6 @@ .when('/login', { controller: 'loginController', templateUrl: 'components/login/login.html' - }) - .when('/ping', { - controller: 'pingController', - templateUrl: 'components/ping/ping.html' }); } diff --git a/00-Starter-Seed/components/ping/ping.controller.js b/00-Starter-Seed/components/ping/ping.controller.js deleted file mode 100644 index 9b1bc5a..0000000 --- a/00-Starter-Seed/components/ping/ping.controller.js +++ /dev/null @@ -1,25 +0,0 @@ -(function() { - - 'use strict'; - - angular - .module('app') - .controller('pingController', pingController); - - pingController.$inject = ['$scope', '$http']; - - function pingController($scope, $http) { - - // The user's JWT will automatically be attached - // as an authorization header on HTTP requests - $scope.ping = function() { - $http.get('http://localhost:3001/secured/ping') - .then(function(result) { - $scope.pingResult = result.data; - }, function(error) { - console.log(error); - }); - } - } - -})(); \ No newline at end of file diff --git a/00-Starter-Seed/components/ping/ping.html b/00-Starter-Seed/components/ping/ping.html deleted file mode 100644 index 533b933..0000000 --- a/00-Starter-Seed/components/ping/ping.html +++ /dev/null @@ -1,8 +0,0 @@ -