mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 22:14:26 +01:00
Changed API policy for calculating feeRate (#3217)
This commit is contained in:
@@ -99,7 +99,7 @@ namespace BTCPayServer.Controllers.GreenField
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
[Authorize(Policy = Policies.CanModifyStoreSettings, AuthenticationSchemes = AuthenticationSchemes.Greenfield)]
|
[Authorize(Policy = Policies.CanViewStoreSettings, AuthenticationSchemes = AuthenticationSchemes.Greenfield)]
|
||||||
[HttpGet("~/api/v1/stores/{storeId}/payment-methods/onchain/{cryptoCode}/wallet/feerate")]
|
[HttpGet("~/api/v1/stores/{storeId}/payment-methods/onchain/{cryptoCode}/wallet/feerate")]
|
||||||
public async Task<IActionResult> GetOnChainFeeRate(string storeId, string cryptoCode, int? blockTarget = null)
|
public async Task<IActionResult> GetOnChainFeeRate(string storeId, string cryptoCode, int? blockTarget = null)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -115,7 +115,7 @@
|
|||||||
"security": [
|
"security": [
|
||||||
{
|
{
|
||||||
"API Key": [
|
"API Key": [
|
||||||
"btcpay.store.canmodifystoresettings"
|
"btcpay.store.canviewstoresettings"
|
||||||
],
|
],
|
||||||
"Basic": []
|
"Basic": []
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user