mirror of
https://github.com/semaphoreui/semaphore.git
synced 2025-01-22 08:10:50 +01:00
15 lines
277 B
JavaScript
15 lines
277 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) {
|
|
self.credentials = data;
|
|
|
|
cb();
|
|
});
|
|
}
|
|
});
|
|
}); |