(names)
| 10432 | |
| 10433 | |
| 10434 | function createShortMethods(names) { |
| 10435 | forEach(arguments, function(name) { |
| 10436 | $http[name] = function(url, config) { |
| 10437 | return $http(extend({}, config || {}, { |
| 10438 | method: name, |
| 10439 | url: url |
| 10440 | })); |
| 10441 | }; |
| 10442 | }); |
| 10443 | } |
| 10444 | |
| 10445 | |
| 10446 | function createShortMethodsWithData(name) { |
no test coverage detected