gratipay / grtp.co

Gratipay Widgets + API
https://grtp.co/
MIT License
26 stars 19 forks source link

Add helper function for accessing Gittip endpoints #58

Closed duckinator closed 6 years ago

duckinator commented 10 years ago

In lib/v1/api.js, getPublic() and getCharts() are basically the same thing, with a single string changed. As more endpoints are added, this will only get more ridiculous. This should be separated out into a helper function of some sort. (There is a relevant comment with a TODO in the code).