GreenField API: Configure Store Lightning Payment Method

This commit is contained in:
Kukks
2021-01-12 09:25:35 +01:00
parent ec11585223
commit b40095f603
7 changed files with 744 additions and 7 deletions

View File

@@ -165,12 +165,12 @@ namespace BTCPayServer.Controllers.GreenField
});
}
return Ok(result);
return Ok(result);
}
[Authorize(Policy = Policies.CanModifyStoreSettings, AuthenticationSchemes = AuthenticationSchemes.Greenfield)]
[HttpDelete("~/api/v1/stores/{storeId}/payment-methods/onchain/{cryptoCode}")]
public async Task<ActionResult<OnChainPaymentMethodPreviewResultData>> RemoveOnChainPaymentMethod(
public async Task<IActionResult> RemoveOnChainPaymentMethod(
string cryptoCode,
int offset = 0, int amount = 10)
{