mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-19 09:54:30 +01:00
Switch to POST for dismissing hints
This commit is contained in:
parent
543e628a8b
commit
1646241dfb
@ -981,8 +981,9 @@ namespace BTCPayServer.Controllers
|
||||
});
|
||||
}
|
||||
|
||||
[HttpGet]
|
||||
[Route("{storeId}/dismissHint/{id}")]
|
||||
[HttpPost]
|
||||
[Route("{storeId}/dismissHint")]
|
||||
[IgnoreAntiforgeryToken]
|
||||
public async Task<IActionResult> DismissHint(string id)
|
||||
{
|
||||
var blob = CurrentStore.GetStoreBlob();
|
||||
|
@ -18,9 +18,7 @@
|
||||
var url = "@Url.Action("DismissHint", "Stores", new { storeId = "store_Id", id="hint_Id" })"
|
||||
.replace("hint_Id", hintId)
|
||||
.replace("store_Id", storeId);
|
||||
$.get(url, function (data) {
|
||||
//row.toggleClass("seen loading");
|
||||
});
|
||||
$.post(url);
|
||||
return true;
|
||||
}
|
||||
</script>
|
||||
|
Loading…
Reference in New Issue
Block a user