mirror of
https://github.com/tenrok/axios.git
synced 2026-06-05 16:42:32 +03:00
@@ -6,6 +6,13 @@ var dispatchRequest = require('./core/dispatchRequest');
|
||||
var InterceptorManager = require('./core/InterceptorManager');
|
||||
|
||||
var axios = module.exports = function (config) {
|
||||
// Allow for axios('example/url')
|
||||
if (typeof config === 'string') {
|
||||
config = {
|
||||
url: config
|
||||
};
|
||||
}
|
||||
|
||||
config = utils.merge({
|
||||
method: 'get',
|
||||
headers: {},
|
||||
|
||||
Reference in New Issue
Block a user