(names)
| 13256 | |
| 13257 | |
| 13258 | function createShortMethods(names) { |
| 13259 | forEach(arguments, function(name) { |
| 13260 | $http[name] = function(url, config) { |
| 13261 | return $http(extend({}, config || {}, { |
| 13262 | method: name, |
| 13263 | url: url |
| 13264 | })); |
| 13265 | }; |
| 13266 | }); |
| 13267 | } |
| 13268 | |
| 13269 | |
| 13270 | function createShortMethodsWithData(name) { |
no test coverage detected