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

Set default BASE URL #286

Closed
Niiidro opened this issue Nov 20, 2021 · 1 comment
Closed

Set default BASE URL #286

Niiidro opened this issue Nov 20, 2021 · 1 comment

Comments

@Niiidro
Copy link

Niiidro commented Nov 20, 2021

Hello.

Am i able to define a global Base URL like the Access Token?
For Example: My API is on http;//localhost:8000 and i wanna fetch data in every component just with const users = mande(/users).

Is this possible?

@posva
Copy link
Owner

posva commented Nov 20, 2021

Yes, just pass it to mande as the first argument

@posva posva closed this as completed Nov 20, 2021
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

No branches or pull requests

2 participants