Skip to content

Commit

Permalink
Add HEAD support to /user/me
Browse files Browse the repository at this point in the history
  • Loading branch information
SapiensAnatis committed Jun 30, 2024
1 parent 489710a commit 7038585
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ namespace DragaliaAPI.Features.Web.Account;
[ApiController]
public class UserController(UserService userService) : ControllerBase
{
[HttpGet("me")]
[Route("me")]
[HttpGet]
[HttpHead]
[Authorize(Policy = PolicyNames.RequireValidJwt)]
public async Task<ActionResult<User>> GetSelf(CancellationToken cancellationToken)
{
Expand Down

0 comments on commit 7038585

Please sign in to comment.