blob: a2e2aeff032fd6d1797550b11b3680da4a156d5d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
'use strict';
/**
* get data factory
*/
angular.module('opnfvApp')
.factory('TableFactory', function($resource, $rootScope) {
return {
getFilter: function() {
return $resource(BASE_URL + '/filters', {}, {
'get': {
method: 'GET',
}
});
},
getScenario: function() {
return $resource(BASE_URL + '/scenarios', {}, {
'post': {
method: 'POST',
}
})
}
};
});
|