mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 06:24:24 +01:00
API: Add Lightning Payment info endpoint (#3557)
* Upgrade Lightning lib * API: Add Lightning Payment info endpoint
This commit is contained in:
@@ -77,6 +77,14 @@ namespace BTCPayServer.Controllers.Greenfield
|
||||
return base.GetDepositAddress(cryptoCode);
|
||||
}
|
||||
|
||||
[Authorize(Policy = Policies.CanUseInternalLightningNode,
|
||||
AuthenticationSchemes = AuthenticationSchemes.Greenfield)]
|
||||
[HttpGet("~/api/v1/server/lightning/{cryptoCode}/payments/{paymentHash}")]
|
||||
public override Task<IActionResult> GetPayment(string cryptoCode, string paymentHash)
|
||||
{
|
||||
return base.GetPayment(cryptoCode, paymentHash);
|
||||
}
|
||||
|
||||
[Authorize(Policy = Policies.CanUseInternalLightningNode,
|
||||
AuthenticationSchemes = AuthenticationSchemes.Greenfield)]
|
||||
[HttpGet("~/api/v1/server/lightning/{cryptoCode}/invoices/{id}")]
|
||||
|
||||
Reference in New Issue
Block a user