therewillbecode / poker-maison

🂺 A Multiplayer Poker App Crafted with Haskell and React
308 stars 34 forks source link

GetProfile API Endpoint should also give some basic game stats for the user #3

Open therewillbecode opened 5 years ago

therewillbecode commented 5 years ago

The type representing the Servant API endpoint for getting the User's Profile is here

The API Endpoint handler for fetching a user's profile is here

It would be a good idea to add some basic game stats such as Hands played, total profit/loss over career, Big Blind win rate etc. This way players can have more insight into how they are playing.

You will of course need to add new record fields to the UserProfile type.