Passed
Push — master ( 8b521b...1e81c0 )
by
unknown
10:11
created

myems-admin/app/services/users/log/log.service.js   A

Complexity

Total Complexity 4
Complexity/F 1

Size

Lines of Code 14
Function Count 4

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 4
eloc 10
dl 0
loc 14
rs 10
c 0
b 0
f 0
mnd 0
bc 0
fnc 4
bpm 0
cpm 1
noi 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
16
17