Disable export to JSON

This commit is contained in:
nicolas.dorier
2018-10-12 13:17:38 +09:00
parent 9bec38559f
commit dcc859a86a
4 changed files with 11 additions and 70 deletions

View File

@@ -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)]