(names)
| 9611 | |
| 9612 | |
| 9613 | function createShortMethods(names) { |
| 9614 | forEach(arguments, function(name) { |
| 9615 | $http[name] = function(url, config) { |
| 9616 | return $http(extend(config || {}, { |
| 9617 | method: name, |
| 9618 | url: url |
| 9619 | })); |
| 9620 | }; |
| 9621 | }); |
| 9622 | } |
| 9623 | |
| 9624 | |
| 9625 | function createShortMethodsWithData(name) { |
no test coverage detected