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