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) {