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

Enable apiProxy.enabled and pushState without making apiProxy.prefix required #172

Open
tamakisquare opened this issue Dec 4, 2013 · 2 comments

Comments

@tamakisquare
Copy link

I like how the dev server provided by Lineman supports server-side APIs and HTML5 pushState. The increase in my productivity is beyond what words can describe. Thanks to the wonderful team behind the project.

But there's one minor inflexibility when both API proxy and HTML5 pushState emulation are both used - apiProxy.prefix must be supplied. I understand that the prefix is needed to determine whether a request should be forwarded to the API proxy. Instead of using a prefix, I would like to propose forwarding only requests that are XmlHttpRequest and serve index.html for ordinary HTTP requests.

Any thoughts?

@davemo
Copy link
Member

davemo commented Dec 4, 2013

I would support something like this, but I think we also need to consider that API requests may be made via other protocols like WebSockets, SSE etc..

@tamakisquare
Copy link
Author

@davemo - You are right. I overlooked that. I am not familiar with the other protocols. Do you think it's possible to identify all protocols that API requests can be made with?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants