harness-drone/server/app/scripts/controllers/users.js

14 lines
328 B
JavaScript
Raw Normal View History

'use strict';
angular.module('app').controller("UsersController", function($scope, $http, user) {
$scope.user = user;
$http({method: 'GET', url: '/v1/users'}).
success(function(data, status, headers, config) {
$scope.users = data;
}).
error(function(data, status, headers, config) {
console.log(data);
});
});