Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Variable baseUrl #52

Open
RobinClowers opened this issue Oct 31, 2022 · 0 comments
Open

Variable baseUrl #52

RobinClowers opened this issue Oct 31, 2022 · 0 comments

Comments

@RobinClowers
Copy link

I'm working on a project where we talk to many different instances of the same API that live on different hosts. Currently, it seems like I have to create separate Fetcher for each host, which ends up making our code pretty awkward. I'm not sure the best way to handle this, but I have two ideas.

  1. Expose an option to pass in the baseUrl somehow in the fetch
  2. Provide an alternative api that doesn't require you to create a Fetcher before calling an endpoint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant