JoeBussard / polywordleapi

the api for playing polywordle
0 stars 0 forks source link

Clean up responses #27

Closed JoeBussard closed 2 years ago

JoeBussard commented 2 years ago

Addresses issue #26. Relevant to issue #5. The API sends different responses now.

This PR improves responses. For POST requests, it responds with an HTTP response code and a brief message. For GET requests, it responds with the game's public data, which now includes a field for the game's progress. This also helps differentiate between errors related to the user input and the client's handling of the API.