Base URL
You can set the base URL both at the instance level and at the call level when you call .exec()
Instance level
const options = {
fetchOptions: {
baseURL: 'https://someyourapi.com/'
},
}
const flyapiInstance = flyapi(options)
Self level
const allTodos = await flyapiInstance.todos.exec({
baseURL: 'https://someyourapi.com/'
})
This can be useful when you only need to change the endpoint in a specific method