Commit Graph

14 Commits

Author SHA1 Message Date
Thomas Rubini
222a119a21
fix test that game cannot be started twice 2023-01-05 15:45:02 +01:00
Thomas Rubini
2f29aa48bc
prevent start from starting twice 2023-01-05 15:45:02 +01:00
Thomas Rubini
824190348d
check if username is already added to the game 2023-01-05 15:45:02 +01:00
Thomas Rubini
45dface44b
check if username is valid 2023-01-05 15:45:02 +01:00
Thomas Rubini
23ef34e4cf
replace "status" with "error" and "msg" in error codes 2023-01-05 15:45:02 +01:00
Thomas Rubini
096d324ba3
remove getGameInfo endpoint 2023-01-05 15:22:07 +01:00
Thomas Rubini
50459210e5
use flask sessions instead of jwt 2023-01-05 15:16:40 +01:00
e0ffdafa7d
Merge pull request #6 from ThomasRubini/server_401
Always return 200 for consistency
2022-12-01 10:54:30 +01:00
Thomas Rubini
e47063207c
Always return 200 for consistency 2022-12-01 10:52:30 +01:00
Thomas Rubini
cb529c558e
use request.values instead of request.args 2022-12-01 10:43:41 +01:00
Thomas Rubini
bc410e93a5
allow POST requests on the API 2022-12-01 10:35:12 +01:00
Thomas Rubini
5c9f01efad
Misplaced comment 2022-11-29 15:11:33 +01:00
Thomas Rubini
54785f04ee
endpoint /startGame + jwt_required decorator 2022-11-29 14:51:04 +01:00
Thomas Rubini
5c162dd4fb
refactor 2022-11-29 13:54:38 +01:00