2
0
mirror of https://github.com/tenrok/axios.git synced 2026-05-15 11:59:42 +03:00

Merge pull request #321 from reggi/patch-1

export Axios fixes #320
This commit is contained in:
Matt Zabriskie
2016-05-17 09:48:08 -06:00
+1
View File
@@ -78,6 +78,7 @@ Axios.prototype.request = function request(config) {
var defaultInstance = new Axios(defaults);
var axios = module.exports = bind(Axios.prototype.request, defaultInstance);
module.exports.Axios = Axios;
// Expose properties from defaultInstance
axios.defaults = defaultInstance.defaults;