(names)
| 9501 | |
| 9502 | |
| 9503 | function createShortMethods(names) { |
| 9504 | forEach(arguments, function(name) { |
| 9505 | $http[name] = function(url, config) { |
| 9506 | return $http(extend(config || {}, { |
| 9507 | method: name, |
| 9508 | url: url |
| 9509 | })); |
| 9510 | }; |
| 9511 | }); |
| 9512 | } |
| 9513 | |
| 9514 | |
| 9515 | function createShortMethodsWithData(name) { |
no test coverage detected