Feat/lottery endpoint #18
Reference in New Issue
Block a user
No description provided.
Delete Branch "feat/lottery-endpoint"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Frontend
TODO:
Frontend has a
/history[0] page that fetches all previous lotteries sorted by date and it's winners.Backend
Get information per lottery.
New endpoints:
/lottery/all,/lottery/by-date/:datewhere:dateis seconds i epoch format, and/lottery/by-name/:namewhere:nameis string of person want to get winning lotteries for.The response object looks like. Note that
wineis only the Object Id when using/lottery/all, but the other endpoints resolves thewin.wineto it's full object.[0]
