libodonjs icon indicating copy to clipboard operation
libodonjs copied to clipboard

Reduce functions and move to universal api()?

Open pwFoo opened this issue 7 years ago • 0 comments

Instead of create a function for each endpoint / variante why not just use few functions Like

api(endpoint, params, action)
//api("/api/v1/statuses/", {id: "<ID>"}, "unreblog")

One function isn't enough, but maybe few will be fine?

statuses()
accounts()
...

pwFoo avatar Oct 11 '18 20:10 pwFoo