Feat/lottery endpoint #18

Merged
KevinMidboe merged 8 commits from feat/lottery-endpoint into master 2020-08-14 14:56:48 +00:00

8 Commits

Author SHA1 Message Date
KevinMidboe
eeb14786e8 Merge branch 'feat/lottery-endpoint' of github.com:kevinmidboe/vinlottis into feat/lottery-endpoint 2020-06-14 14:32:36 +02:00
9b9d5bd528 Winners component has title prop but defaults "Vinnere" 2020-06-14 14:32:05 +02:00
6633994940 Registered HistoryPage api funcs & router endpoint. 2020-06-14 14:31:34 +02:00
b4b6643581 HistoryPage shows winners from prev lotteries.
The design of this pages sucks, but Winners.vue matched pretty well.
Need to have it's own design.
2020-06-14 14:30:45 +02:00
f059d6f662 New /lottery endpoint for server. 2020-06-14 14:28:47 +02:00
267b2df2d7 New /lottery endpoint for server. 2020-05-30 10:27:36 +02:00
368b6a29aa Renamed api/lotteries.js -> api/lottery.js 2020-05-30 10:25:37 +02:00
fa59d71717 Lottery endpoints for all, by-date or by-name.
Can now get all highscore entries grouped by shared highscore dates.
This gives a complete list of all the lotteries and their winners.
 - By-date takes a epoch date to match a given lottery.
 - By-name uses query parameter `name` for searching for all winnings by
name.
 - Both /by-date and /by-name don't just return the wine _id, but
resolves it's wine reference.
2020-05-30 10:24:56 +02:00