@@ -1,5 +1,4 @@
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace Distribution.Features.Payment;
|
||||
|
||||
@@ -8,7 +7,6 @@ namespace Distribution.Features.Payment;
|
||||
public class PaymentController(PaymentService service) : ControllerBase
|
||||
{
|
||||
[HttpGet]
|
||||
[Authorize("invoice.view")]
|
||||
public async Task<IActionResult> GetByInvoice(Guid invoiceId)
|
||||
{
|
||||
var result = await service.GetByInvoiceIdAsync(invoiceId);
|
||||
@@ -16,7 +14,6 @@ public class PaymentController(PaymentService service) : ControllerBase
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
[Authorize("payment.manage")]
|
||||
public async Task<IActionResult> Create(Guid invoiceId, CreatePaymentRequest request, CancellationToken ct)
|
||||
{
|
||||
try
|
||||
|
||||
Reference in New Issue
Block a user