axios use baseurl as config code example Example: axios configure base url axios.defaults.baseURL = '/api/';