stockpile-co / api

The API for Stockpile, an app that manages stuff for organizations.
0 stars 1 forks source link

Fix "get all" endpoint pagination #185

Closed AdamVig closed 6 years ago

AdamVig commented 7 years ago

The current approach is sloppy and contains a lot of duplicated code. The correct approach is to implement pagination in db.getAll and pass the relevant parameters from endpoint.getAll.