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

Remove hard-coded /api path #201

Open
aryzing opened this issue Jun 7, 2024 · 0 comments
Open

Remove hard-coded /api path #201

aryzing opened this issue Jun 7, 2024 · 0 comments

Comments

@aryzing
Copy link

aryzing commented Jun 7, 2024

Would be great if the library could be more flexible to accomodate APIs not deployed at /api. Currently, this line in the code,

baseURL: `${protocol}://${hostname}${network}/api/`,

assumes any API the lib interacts with is deployed at /api. Would recommend to either remove it or have it as a param.

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

1 participant