Skip to content

Commit

Permalink
Fixing ambiguous HTTP methods
Browse files Browse the repository at this point in the history
  • Loading branch information
wAsnk committed Mar 8, 2024
1 parent 81a155d commit 583b66f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public PaymentController(
_paymentService = paymentService;
}

[Route("checkout")]
[HttpGet("checkout")]
public async Task<IActionResult> Index(string? shoppingCartId)
{
if (!await _authorizationService.AuthorizeAsync(User, Permissions.Checkout))
Expand Down Expand Up @@ -157,7 +157,7 @@ await _paymentProviders
}
}

[Route("checkout/paymentrequest/{orderId}")]
[HttpGet("checkout/paymentrequest/{orderId}")]
public async Task<IActionResult> PaymentRequest(string orderId)
{
if (await _contentManager.GetAsync(orderId) is not { } order ||
Expand Down Expand Up @@ -205,7 +205,7 @@ await _notifier.WarningAsync(new HtmlString(" ").Join(
return View(viewModel);
}

[Route("success/{orderId}")]
[HttpGet("success/{orderId}")]
public async Task<IActionResult> Success(string orderId)
{
if (await _contentManager.GetAsync(orderId) is not { } order) return NotFound();
Expand Down

0 comments on commit 583b66f

Please sign in to comment.