Skip to content

Commit

Permalink
Document auth requirement for /api/players/self
Browse files Browse the repository at this point in the history
  • Loading branch information
RubberDuckShobe committed Nov 6, 2024
1 parent c41a694 commit b84e96d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/api/players.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ async fn get_player(
"joinedAt":"+002023-05-23T18:56:24.726000000Z",
"avatarUrl":"https://avatars.steamstatic.com/d72c8ef0f183faf564b9407572d51751794acd15_full.jpg"}"#)),
(status = UNAUTHORIZED, description = "Not logged in or invalid token", body = SimpleRouteErrorOutput, content_type = "application/json")
),
security(
("token_jwt" = [])
)
)]
async fn get_self(
Expand Down

0 comments on commit b84e96d

Please sign in to comment.