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 Base URL as string or as function. #22

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Set Base URL as string or as function. #22

wants to merge 4 commits into from

Conversation

0xE282B0
Copy link

As mentioned in #18 it would be handy to have a configurable BackendURL at execution time.

My preferred approach is to pass the @baseurl annotation a function instead of a string.

example:

@BaseUrl(
    _ => sessionStorage.getItem("url") || "http://localhost:8080"
)

@0xE282B0
Copy link
Author

The important commit is 2da6d04. Feel free to cherry-pick it.

All the other changes have been committed to satisfy Travis CI.

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 this pull request may close these issues.

1 participant