stadust / pointercrate

Rewrite of the https://pointercrate.com backend in Rust
MIT License
80 stars 53 forks source link

feat: add `/players/me` endpoint (#191) #197

Closed emonadeo closed 1 week ago

emonadeo commented 1 week ago

Add /players/me that returns the FullPlayer linked to the authenticated user. Returns 401 if unauthenticated (duh). Returns 404 if no claim exists.

Closes #191.

License Acceptance

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

codecov[bot] commented 1 week ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 29.76%. Comparing base (3d095e4) to head (f7d5839). Report is 2 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #197 +/- ## ========================================== + Coverage 29.31% 29.76% +0.45% ========================================== Files 117 117 Lines 8321 8334 +13 ========================================== + Hits 2439 2481 +42 + Misses 5882 5853 -29 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

stadust commented 1 week ago

Thanks! Love this solution :)