To run this project, you will need to add the following environment variables to your .env file
DB URI
PORT
GET /
GET /dashboard
POST /new-game
Body | Type | Required |
---|---|---|
namePlayerOne |
string |
True. |
namePlayerTwo |
string |
True. |
POST /save-game
Parameters | Type | Required |
---|---|---|
players |
Array[ObjectID] |
True |
winner |
ObjectID |
True. |
point_diference |
Number |
True. |
POST /save-points-user
Parameters | Type | Required |
---|---|---|
playerId |
ObjectID |
True |
wins |
Number |
True. |