(names)
| 13191 | |
| 13192 | |
| 13193 | function createShortMethods(names) { |
| 13194 | forEach(arguments, function(name) { |
| 13195 | $http[name] = function(url, config) { |
| 13196 | return $http(extend({}, config || {}, { |
| 13197 | method: name, |
| 13198 | url: url |
| 13199 | })); |
| 13200 | }; |
| 13201 | }); |
| 13202 | } |
| 13203 | |
| 13204 | |
| 13205 | function createShortMethodsWithData(name) { |
no test coverage detected