| Total Complexity | 4 |
| Complexity/F | 1 |
| Lines of Code | 14 |
| Function Count | 4 |
| Duplicated Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | 'use strict'; |
||
| 2 | app.factory('LogService', function($http) { |
||
| 3 | return { |
||
| 4 | getLogs: function(headers, callback) { |
||
| 5 | let config = { headers: headers }; |
||
| 6 | $http.get(getAPI() + 'logs', config) |
||
| 7 | .then(function (response) { |
||
| 8 | callback(response); |
||
| 9 | }, function (response) { |
||
| 10 | callback(response); |
||
| 11 | }); |
||
| 12 | } |
||
| 13 | }; |
||
| 14 | }); |
||
| 15 | |||
| 17 |