Two API endpoints for getting a JSON dump of the Leaderboard (of Users) and Bounties. Note that the is already a route /api/bounty (create). This shouldn't be a problem.
Also, because of my data, I needed to put some guard code around the better_time call to handle no claimed_at attribute.
These controllers are "test free"... hope that's ok.
Two API endpoints for getting a JSON dump of the Leaderboard (of Users) and Bounties. Note that the is already a route /api/bounty (create). This shouldn't be a problem.
Also, because of my data, I needed to put some guard code around the better_time call to handle no claimed_at attribute.
These controllers are "test free"... hope that's ok.