Small amount of work on the user management

This commit is contained in:
tidusjar 2016-08-18 17:31:50 +01:00
commit 2a6f928902
7 changed files with 377 additions and 18 deletions

View file

@ -2,15 +2,18 @@
var userManagementService = function ($http) {
$http.defaults.headers.common['Content-Type'] = 'application/x-www-form-urlencoded; charset=UTF-8'; // Set default headers
$http.defaults.headers.common['Content-Type'] = 'application/x-www-form-urlencoded'; // Set default headers
var getUsers = function () {
return $http.get('/usermanagement/users');
};
var addUser = function (user) {
if (!user) {
return null;
}
return $http({
return $http({
url: '/usermanagement/createuser',
method: "POST",
data: $.param(user)