This is my code.
var app = angular.module('adminPanel', []);
app.controller('namesController', function($scope, $http) {
var root = 'http://samp.newclan.com.uy:3000/api';
$http.get(root + "/users")
.then(function (response) {
$scope.names = response.data;
});
});
And this is the error that returns