API endpoint for getting latest lottery.

This commit is contained in:
2021-02-20 13:29:41 +01:00
parent 7e2b5a5bb0
commit 80e6c91045
3 changed files with 29 additions and 2 deletions

View File

@@ -71,6 +71,7 @@ router.delete("/lottery/winner/:id", mustBeAuthenticated, winnerController.delet
router.get("/lottery/draw", mustBeAuthenticated, lotteryController.drawWinner);
router.post("/lottery/archive", mustBeAuthenticated, lotteryController.archiveLottery);
router.get("/lottery/latest", lotteryController.latestLottery);
router.get("/lottery/:epoch", lotteryController.lotteryByDate);
router.get("/lotteries/", lotteryController.allLotteries);