3 ms·
This is fascinating, thank you for the writeup. I have a question about the donation API though, I feel like I am missing something: We settled on a very simp
by brown9-2 14y ago
This is fascinating, thank you for the writeup.
I have a question about the donation API though, I feel like I am missing something:
We settled on a very simple solution of turning the hosted platform into a REST API. The only big change was adding JSON as an output option instead of HTML... We consumed the newly created donation API using JavaScript on static HTML pages which were served by our CDN (Akamai).
What operations did this API handle? Were donation submissions being sent from the user's browser to this API?
By the way, I think there might be a bug with your PJAX code on kylerush.net - when you click links to other parts of the site or to read other articles, the page title displayed in the browser stays as the initial title from the initial HTTP request.
- kylerush 14y agoThe API was quite simple. Essentially it just processed a donation. It had some other functions to it that involved saving a users payment information to their account as well. Yes, the donation submission was an POST request executed with JavaScript (AJAX) from the user's browser. Thanks for noticing the bug! I'll have to check that out.