Skip to content

Conversation

@emonadeo
Copy link
Contributor

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.

Signed-off-by: Emanuel Pilz <emonadeo@gmail.com>
@codecov
Copy link

codecov bot commented Nov 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

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

Additional details and impacted files
@@            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     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@stadust stadust merged commit df1f9f6 into stadust:master Nov 26, 2024
4 checks passed
@stadust
Copy link
Owner

stadust commented Nov 26, 2024

Thanks! Love this solution :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create endpoint for retrieving linked player of logged in user

2 participants