1
0
Fork 0
mirror of https://github.com/mmumshad/ansible-playable.git synced 2025-02-15 04:42:05 +00:00
ansible-playable/client/app/services/system/system.service.js

20 lines
515 B
JavaScript
Raw Normal View History

'use strict';
const angular = require('angular');
/*@ngInject*/
export function systemService($http) {
// AngularJS will instantiate a singleton by calling "new" on this function
const api_system = '/api/system';
const api_get_logs = api_system + '/logs';
this.getLogs = function(type, successCallback, errorCallback){
$http.get(api_get_logs + '/' + type).then(successCallback, errorCallback);
}
}
export default angular.module('webAppApp.system', [])
.service('system', systemService)
.name;