import Axios from 'axios'; // base url to make requests to the chtabot databse const instance = Axios.create({ baseURL: "" }); export default instance; how to call base url while calling api code example
Example: axios configure base url
axios.defaults.baseURL = '/api/';