mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 14:04:26 +01:00
Disable export to JSON
This commit is contained in:
@@ -530,21 +530,6 @@ namespace BTCPayServer.Controllers
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
[HttpGet]
|
||||
[Authorize(AuthenticationSchemes = Policies.CookieAuthentication)]
|
||||
[BitpayAPIConstraint(false)]
|
||||
public async Task<IActionResult> Export(string format, string searchTerm = null)
|
||||
{
|
||||
var model = new ExportInvoicesModel
|
||||
{
|
||||
Format = format,
|
||||
Invoices = await ListInvoicesProcess(searchTerm, 0, int.MaxValue)
|
||||
};
|
||||
|
||||
return Content(model.Process(), "application/" + format);
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
[Authorize(AuthenticationSchemes = Policies.CookieAuthentication)]
|
||||
[BitpayAPIConstraint(false)]
|
||||
|
||||
Reference in New Issue
Block a user