Skip to content

Commit

Permalink
Logging with baseUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
tenorok committed Mar 4, 2020
1 parent 7d29d83 commit ac2ede8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
'use strict'

var path = require('path');
var axios = require('axios')
var buildURL = require('axios/lib/helpers/buildURL')
var axiosDebug = require('debug')('axios')

const getURL = (config) => {
return buildURL(config.url, config.params, config.paramsSerializer)
const url = path.join(config.baseURL || '', config.url)
return buildURL(url, config.params, config.paramsSerializer)
}

var options = {
Expand Down

0 comments on commit ac2ede8

Please sign in to comment.