diff --git a/BTCPayServer/Controllers/PublicController.cs b/BTCPayServer/Controllers/PublicController.cs index cdc8cb8b6..5c0dea090 100644 --- a/BTCPayServer/Controllers/PublicController.cs +++ b/BTCPayServer/Controllers/PublicController.cs @@ -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 PayButtonHandle(PayButtonViewModel model) + { + return await PayButtonHandle(model, CancellationToken.None); + } + [HttpPost] [Route("api/v1/invoices")] [MediaTypeAcceptConstraintAttribute("text/html")]