Switch to POST for dismissing hints

This commit is contained in:
rockstardev 2020-10-17 14:26:29 -05:00
parent 543e628a8b
commit 1646241dfb
2 changed files with 4 additions and 5 deletions

View File

@ -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();

View File

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