how to get base url from axios code example Example: axios configure base url axios.defaults.baseURL = '/api/';