Skip to content
This repository has been archived by the owner on Feb 8, 2022. It is now read-only.

create a specific endpoint for the API passthrough #82

Open
afeld opened this issue Nov 16, 2015 · 2 comments
Open

create a specific endpoint for the API passthrough #82

afeld opened this issue Nov 16, 2015 · 2 comments

Comments

@afeld
Copy link
Owner

afeld commented Nov 16, 2015

i.e. /api/v1/proxy?url.... Too confusing to have the API and homepage shared at the same path, and makes things like #81 difficult (since it can't always assume a url param to use as a key for throttling).

@thewisenerd
Copy link

Would this issue also enclose the following case; where you have your own site running at port 80?

eg:

http://example.com redirects to my own page;

and

http://example.com/api/v1/proxy redirects to jsonp service running at port, say 8000

Is url redirection the only way to do this?

@afeld
Copy link
Owner Author

afeld commented Dec 20, 2015

In that case, you might have to something in your web server (e.g. nginx) configuration. You could also consider setting up your instance of JSONProxy at a subdomain rather than a sub-path.

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

No branches or pull requests

2 participants