From a2484f0eb8b40eeae59e356ba0fe3a24bc4218c5 Mon Sep 17 00:00:00 2001 From: Ryan Chenkie Date: Thu, 6 Apr 2017 14:40:10 -0600 Subject: [PATCH] remove calling api --- 00-Starter-Seed/app.js | 4 - .../components/ping/ping.controller.js | 25 ---- 00-Starter-Seed/components/ping/ping.html | 8 -- 00-Starter-Seed/index.html | 2 - 08-Calling-Api/.gitignore | 4 - 08-Calling-Api/README.md | 114 ------------------ 08-Calling-Api/app.js | 61 ---------- 08-Calling-Api/app.run.js | 33 ----- 08-Calling-Api/auth0-variables.js.example | 3 - 08-Calling-Api/bower.json | 29 ----- .../components/auth/auth.service.js | 68 ----------- .../components/home/home.controller.js | 22 ---- 08-Calling-Api/components/home/home.html | 11 -- .../components/login/login.controller.js | 17 --- 08-Calling-Api/components/login/login.html | 7 -- .../components/ping/ping.controller.js | 29 ----- 08-Calling-Api/components/ping/ping.html | 8 -- 08-Calling-Api/index.html | 52 -------- Server/.gitignore | 2 - Server/README.md | 20 --- Server/package.json | 12 -- Server/server.js | 26 ---- 22 files changed, 557 deletions(-) delete mode 100644 00-Starter-Seed/components/ping/ping.controller.js delete mode 100644 00-Starter-Seed/components/ping/ping.html delete mode 100644 08-Calling-Api/.gitignore delete mode 100644 08-Calling-Api/README.md delete mode 100644 08-Calling-Api/app.js delete mode 100644 08-Calling-Api/app.run.js delete mode 100644 08-Calling-Api/auth0-variables.js.example delete mode 100644 08-Calling-Api/bower.json delete mode 100644 08-Calling-Api/components/auth/auth.service.js delete mode 100644 08-Calling-Api/components/home/home.controller.js delete mode 100644 08-Calling-Api/components/home/home.html delete mode 100644 08-Calling-Api/components/login/login.controller.js delete mode 100644 08-Calling-Api/components/login/login.html delete mode 100644 08-Calling-Api/components/ping/ping.controller.js delete mode 100644 08-Calling-Api/components/ping/ping.html delete mode 100644 08-Calling-Api/index.html delete mode 100644 Server/.gitignore delete mode 100644 Server/README.md delete mode 100644 Server/package.json delete mode 100644 Server/server.js 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 @@ -
-

-

Ping

-
- -

{{ pingResult.text }}

-
-
\ No newline at end of file diff --git a/00-Starter-Seed/index.html b/00-Starter-Seed/index.html index 9c13215..110c2c6 100644 --- a/00-Starter-Seed/index.html +++ b/00-Starter-Seed/index.html @@ -24,7 +24,6 @@