mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-22 22:25:28 +01:00
parent
29d51ad2a2
commit
a354f7d9dd
1 changed files with 9 additions and 0 deletions
|
@ -26,6 +26,15 @@ namespace BTCPayServer.Controllers
|
|||
private InvoiceController _InvoiceController;
|
||||
private StoreRepository _StoreRepository;
|
||||
|
||||
[HttpGet]
|
||||
[IgnoreAntiforgeryToken]
|
||||
[EnableCors(CorsPolicies.All)]
|
||||
[Route("api/v1/invoices")]
|
||||
public async Task<IActionResult> PayButtonHandle(PayButtonViewModel model)
|
||||
{
|
||||
return await PayButtonHandle(model, CancellationToken.None);
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
[Route("api/v1/invoices")]
|
||||
[MediaTypeAcceptConstraintAttribute("text/html")]
|
||||
|
|
Loading…
Add table
Reference in a new issue