mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-21 13:53:19 -07:00
Small amount of work on the user management
This commit is contained in:
parent
46a63f48c4
commit
2a6f928902
7 changed files with 377 additions and 18 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue