From 0c69462255d1cea5e4f90f552c1863e959d23760 Mon Sep 17 00:00:00 2001 From: aj Date: Tue, 15 Aug 2017 16:56:46 +0000 Subject: [PATCH] add Auth to website --- js/controllers/website-controller.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/js/controllers/website-controller.js b/js/controllers/website-controller.js index 5afe467..f9f0ef2 100644 --- a/js/controllers/website-controller.js +++ b/js/controllers/website-controller.js @@ -1,9 +1,9 @@ app.controller('websiteCtrl', [ - '$scope', 'azp@oauth3.org', - function ($scope, Oauth3) { - var vm = this; + '$scope', 'Auth', 'azp@oauth3.org' +, function ($scope, Auth, Oauth3) { - vm.oauth3 = Oauth3.oauth3; + var vm = this; + vm.oauth3 = Auth.oauth3; vm.getDomains = function () { vm.oauth3.api('domains.list', {}).then(function (result) {