to avoid xy problem: we have a front-end (nuxt) consuming some routes from our api. initially, we were using useFetch to consume these routes, but over time, multiple calls became repetitive and tiring, for example, a user route in the api (/users) generally returns the same payload format, you need to do error handling every time, you need to pass the baseURL every time to useFetch, that kind of thing. the idea was to create a library that is an API wrapper for our API, this library will abstract the calls and handle the responses appropriately to avoid redundant code in the front-end
my question is: i started to create an api wrapper here using ofetch but my question is if this is the right way, should i use ofetch or should i create a nuxt module and use useFetch?