753e4eb422
Merge branch 'master' into feat/register
2021-04-29 17:37:17 +02:00
Kasper Rynning-Tønnesen
56072ff282
feat: Allow register locally without authentication
2021-03-25 20:48:00 +01:00
Kasper Rynning-Tønnesen
59b4366ed5
fix: Archive but save set winners as winners
...
If archiving a lottery, let archive-functionality circumvent SMS-service if the winners have been set on the archive page.
- Also remove unused file
2021-03-25 20:15:38 +01:00
80e6c91045
API endpoint for getting latest lottery.
2021-02-20 13:29:41 +01:00
3388bed400
Disable registering new users.
2021-02-19 01:01:06 +01:00
7bd2e9d931
All our new routes 🎉
...
- GET /history/search
- GET /purchases
- /purchases
- /purchases/summary
- /purchases/:date
- PUT /lottery/winner/:id (not currently used)
- GET /lotteries
- POST /lottery/messages/winner/:id
2021-02-19 00:29:57 +01:00
4bd3b688e9
Get wines by id or search with wine object.
...
Search with wine object tries to find wines matching name, year and id.
This is used for finding a wine from a prelottery wine where their _id
do not match.
2021-02-18 20:44:54 +01:00
7292cf7983
Endpoint for getting wine schema.
...
This is for manual registration of prelottery wines from the admin page.
2021-02-15 22:38:22 +01:00
cb4a30b5e9
BIGBOY rewrite.
...
All endpoints have been re-worked to be more clear on what they do. They
also all have their own controller now.
2021-01-26 23:05:52 +01:00
4043954f95
Split request into controller and repo.
...
Also try returning better error message on exceptions and check for
errors in payload to return well-defined errors.
2021-01-11 20:52:22 +01:00
ad27ba8b33
Require statements now use path.join correctly.
2020-11-24 23:37:14 +01:00
ee5f817248
Chathistory only returns funcs and used by router.
2020-11-20 16:29:26 +01:00
d5f3a7a1f0
Separated router and user authentication. Renamed login.js to user.js and now it only exports functions for the router to use.
2020-10-22 13:29:06 +02:00
Adrian Thompson
052b5007c2
add is admin middleware
2020-09-07 15:53:03 +02:00
Adrian Thompson
4a98e79414
fix conflicts and rework routes
2020-09-07 14:49:24 +02:00
dde8fe1cbe
Renamed app > router.js. VirtualLottery in router.
2020-09-06 14:07:18 +02:00