add Auth to website

This commit is contained in:
aj 2017-08-15 16:56:46 +00:00
parent 783c4bd4ff
commit 0c69462255
1 changed files with 4 additions and 4 deletions

View File

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