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).
In
lib/v1/api.js
,getPublic()
andgetCharts()
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).