axios request apend baseUrl code example Example: axios configure base url axios.defaults.baseURL = '/api/';