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

Unable to serveRestJSClient with empty URL #2222

Closed
deviator opened this issue Oct 20, 2018 · 2 comments
Closed

Unable to serveRestJSClient with empty URL #2222

deviator opened this issue Oct 20, 2018 · 2 comments

Comments

@deviator
Copy link
Contributor

If I want to use js client generation I must to specify url for requests. But if I want use my program in different machines I need to get ip at each machine at start of program. If I want use many internet interfaces with different ip it's makes problems. But js client what send requests to self server don't need full url (for example http://192.168.99.13/api/v1/some). It's can send requests to relative url (/api/v1/some).

deviator added a commit to deviator/vibe.d that referenced this issue Oct 20, 2018
@Beyarz
Copy link
Contributor

Beyarz commented Nov 2, 2018

If you don't want to specify the ip addresses manually you can use this package.

@deviator
Copy link
Contributor Author

deviator commented Nov 2, 2018

If you don't want to specify the ip addresses manually you can use this package.

I know, thanks, but problem is deeper: device with my program can be in local network with complicated structure (this is my real case) and determine ip address in other networks (where my device has remaped ip) can be problematic and can need more what one steps. And this problem will not appear if serveRestJSClient will can use empty url.

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