(names)
| 8372 | |
| 8373 | |
| 8374 | function createShortMethods(names) { |
| 8375 | forEach(arguments, function(name) { |
| 8376 | $http[name] = function(url, config) { |
| 8377 | return $http(extend(config || {}, { |
| 8378 | method: name, |
| 8379 | url: url |
| 8380 | })); |
| 8381 | }; |
| 8382 | }); |
| 8383 | } |
| 8384 | |
| 8385 | |
| 8386 | function createShortMethodsWithData(name) { |
no test coverage detected