axios set baseurl for 1 api code example Example: axios configure base url axios.defaults.baseURL = '/api/';