mirror of
https://github.com/semaphoreui/semaphore.git
synced 2025-01-22 16:20:44 +01:00
15 lines
302 B
JavaScript
15 lines
302 B
JavaScript
|
define([
|
||
|
'app'
|
||
|
], function(app) {
|
||
|
app.registerService('credentials', function($http, $rootScope) {
|
||
|
var self = this;
|
||
|
|
||
|
self.getCredentials = function(cb) {
|
||
|
$http.get('/credentials').success(function(data) {
|
||
|
$rootScope.credentials = self.credentials = data;
|
||
|
|
||
|
cb();
|
||
|
});
|
||
|
}
|
||
|
});
|
||
|
});
|