users
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
/**
|
||||
* Created by Pensare Software.
|
||||
* User: Theo Weijmer
|
||||
* Date: 25/12/2017
|
||||
* Time: 09:50
|
||||
*/
|
||||
|
||||
dbo.userDataService = {
|
||||
|
||||
getAllUsers: function ( archive = 'F', callback ) {
|
||||
$.getJSON( 'index.php/beheer/usersController/getAllUsers/' + archive )
|
||||
.done( function ( data ) {
|
||||
callback( data );
|
||||
} );
|
||||
},
|
||||
|
||||
getUser: function ( userID, callback ) {
|
||||
$.getJSON( 'index.php/beheer/usersController/getUser/' + userID )
|
||||
.done( function ( data ) {
|
||||
callback( data );
|
||||
} );
|
||||
},
|
||||
|
||||
checkUsername: function ( username, callback ) {
|
||||
$.post( 'index.php/beheer/userController/checkUsername', 'json' )
|
||||
.done( function ( data ) {
|
||||
console.log( data );
|
||||
callback( data );
|
||||
} )
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user