Skip to content

Commit

Permalink
Fixed broken routes
Browse files Browse the repository at this point in the history
  • Loading branch information
jezzsantos committed Feb 11, 2024
1 parent 3697103 commit 97091cb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public async Task WhenRevokeRefreshToken_ThenRevokes()
RefreshToken = oldRefreshToken
});

revoked.StatusCode.Should().Be(HttpStatusCode.OK);
revoked.StatusCode.Should().Be(HttpStatusCode.NoContent);

var refreshed = await Api.PostAsync(new RefreshTokenRequest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Infrastructure.Web.Api.Operations.Shared.Identities;

[Route("tokens/refresh", ServiceOperation.Post)]
[Route("/tokens/refresh", ServiceOperation.Post)]
public class RefreshTokenRequest : UnTenantedRequest<RefreshTokenResponse>
{
public required string RefreshToken { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Infrastructure.Web.Api.Operations.Shared.Identities;

[Route("tokens/{RefreshToken}", ServiceOperation.Delete)]
[Route("/tokens/{RefreshToken}", ServiceOperation.Delete)]
public class RevokeRefreshTokenRequest : UnTenantedDeleteRequest
{
public required string RefreshToken { get; set; }
Expand Down

0 comments on commit 97091cb

Please sign in to comment.