You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to talk to multiple different apis, different from model to model. Is there a simple way to do something like this? I have been doing a bunch of tricks with fetchReference to swap out the url at the time of the request, but that doesn't feel too right. Any way I can set baseUrl per model instead of just on config ?
The text was updated successfully, but these errors were encountered:
nvm, figured it out. The reason baseUrl wasn't working at the model level was that I was missing some type specifications in my collection. The model still worked which was weird, but __prependQuery couldn't find the model to pull baseUrl from it.
I want to talk to multiple different apis, different from model to model. Is there a simple way to do something like this? I have been doing a bunch of tricks with
fetchReference
to swap out the url at the time of the request, but that doesn't feel too right. Any way I can setbaseUrl
per model instead of just onconfig
?The text was updated successfully, but these errors were encountered: