Assign user response correctly

Fix #529
This commit is contained in:
slickvoodoo 2018-04-26 09:59:01 -05:00 committed by GitHub
parent c5505545c4
commit db5408ad84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,7 @@
define(function () { define(function () {
app.registerController('UsersCtrl', ['$scope', '$http', '$uibModal', '$rootScope', function ($scope, $http, $modal, $rootScope) { app.registerController('UsersCtrl', ['$scope', '$http', '$uibModal', '$rootScope', function ($scope, $http, $modal, $rootScope) {
$http.get('/users').then(function (response) { $http.get('/users').then(function (response) {
$scope.users = response.users; $scope.users = response.data;
}); });
$scope.addUser = function () { $scope.addUser = function () {