mirror of
https://github.com/tenrok/axios.git
synced 2026-06-17 19:21:29 +03:00
Fixing issue #8
This commit is contained in:
+3
-1
@@ -51,7 +51,9 @@ var axios = module.exports = function axios(config) {
|
||||
axios.defaults = defaults;
|
||||
|
||||
// Expose all/spread
|
||||
axios.all = Promise.all;
|
||||
axios.all = function (promises) {
|
||||
return Promise.all(promises);
|
||||
};
|
||||
axios.spread = spread;
|
||||
|
||||
// Provide aliases for supported request methods
|
||||
|
||||
Reference in New Issue
Block a user