mirror of
https://github.com/semaphoreui/semaphore.git
synced 2025-01-22 08:10:50 +01:00
15 lines
249 B
JavaScript
15 lines
249 B
JavaScript
define([
|
|
'app'
|
|
], function(app) {
|
|
app.registerService('users', function($http, $rootScope) {
|
|
var self = this;
|
|
|
|
self.getUsers = function(cb) {
|
|
$http.get('/users').success(function(data) {
|
|
self.users = data;
|
|
|
|
cb();
|
|
});
|
|
}
|
|
});
|
|
}); |