Commit Graph

60 Commits (1b5da99cdabb524570b4fd72fb8fa6022dfe44c3)

Author SHA1 Message Date
maru 1b5da99cda
Make save reading/writing more efficient
maru af5f9798ae
Fix comment indentation in generic.go
maru 5893350784
Pass struct to handleAccountLogin and handleAccountRegister
maru 422a850354
Move httpError func to generic.go
maru 01c037a7a2
Use JSON encoders instead of Marshal
Flashfyre 992864b785 Add voucher compensation logic
maru 0f8fc0085e
Change certain struct field names back to what they were
maru 85055d2921
Fix variable re-use bug
maru d97e07b522
Fix condition to read save data from request body
maru 977a05049e
Add missing return
maru 5778675171
Major refactor of API
maru 0edfeab3ca
Various styling changes
maru 80a2c637d2
Indentation consistency near calls to rand.Read
maru 93bb792964
Don't include http error code in log
maru 0eed542b2e
Add http error logging
Flashfyre dcb1c76370 Add endpoints for stats
Flashfyre 99d3490172 Update account stats on system save
maru d12a008259
Various changes
Flashfyre 253e462536 Cache player count instead of querying per user
Flashfyre 8ad0f396ea Add seed check to daily run update condition
Flashfyre eb671f2cb7 Update account activity on rankings load
Flashfyre 7d23859dea Add player count handler
Flashfyre 53ccdc5921 Add weekly rankings and ranking pagination support
Flashfyre 4419ead54c Delete session on loss
Flashfyre a0f8ab658f Fix daily run scheduler not working
Flashfyre be04408336 Update random daily seed logic
Flashfyre 2cb7be52eb Change daily seed generation and update schema for recording failed daily runs
Flashfyre 4710617f23 Add limit and pagination to rankings query
Flashfyre ff98047caa Add daily run rankings
Flashfyre 71889f7daa Add score to session save data
Flashfyre 5214c4aff4 Add mode to seed completion
Flashfyre 2e964b007d Add daily runs and seed completions
Flashfyre 23eb0bbbe8 Log last activity date
Flashfyre 967cbeecdd Fix bad filename
Flashfyre 12137bc3b7 Add session save slots
Flashfyre 2938dbc19d Add support for egg moves data
Flashfyre 06ade19e2c Add starter move data to system save data spec
Flashfyre 9e38ccccbc Add system data integrity check
Flashfyre 448eeeee4a Add player gender field and session history data defs
Flashfyre f7ffb481a7 Add session play time to model
Flashfyre b1355e96dd Add game stats to system data
Flashfyre 83e354a9ef Add nature to dex entry
Flashfyre b64007a5f2 Fix minor issues with session data handling
maru c1098bb415
Fix hasGameSession
maru c1ada7f862
Add hasGameSession to account info response
maru 61d5dd6852
Fix filesystem error handling
maru 7319f13b44
Fix typo
maru a19280d02c
Add cloud save data
maru 6a7aafbff4
Update endpoint comments
maru be62fc939a
Add token length check to account info handler