[p2pu-dev] Redirection for API calls to an API_SERVER

Jos Flores josmasflores at gmail.com
Wed May 16 10:29:00 UTC 2012


Hey guys,

I have added a setting API_SERVER to be able to redirect calls to the
API to a different machine if that setting is != None

Could you guys have a look at the commit here:
https://github.com/josmas/lernanta/commit/9ad44ffcc501bd8d4f5810e7b6deace95ff2a9a8

Regarding a previous comment by Zuzel (not sure you are still around?)
here: https://github.com/josmas/lernanta/commit/7f59a769581f2607c883db7dc0e1672fecc80faa#commitcomment-1227108

I've decided against 404-ing p2pu.org/api because in that case we
could not serve the API and the site under the same domain. API_SERVER
is there for flexibility but I think for now we will be serving
everything off the same server so we cannot 404 local calls.

Could you guys let me know if you are happy with this and I will send
a pull request? Any feedback appreciated!

cheers,
José


More information about the p2pu-dev mailing list