mirror of
https://github.com/aljazceru/lnd-manageJ.git
synced 2026-01-21 23:14:27 +01:00
add endpoint: get all channels for peer
This commit is contained in:
@@ -84,6 +84,13 @@ public class NodeController {
|
||||
return new ChannelsForNodeDto(pubkey, channels);
|
||||
}
|
||||
|
||||
@GetMapping("/all-channels")
|
||||
public ChannelsForNodeDto getAllChannelIdsForPubkey(@PathVariable Pubkey pubkey) {
|
||||
mark("getAllChannelIdsForPubkey");
|
||||
List<ChannelId> channels = toSortedList(channelService.getAllChannelsWith(pubkey));
|
||||
return new ChannelsForNodeDto(pubkey, channels);
|
||||
}
|
||||
|
||||
@GetMapping("/balance")
|
||||
public BalanceInformationDto getBalance(@PathVariable Pubkey pubkey) {
|
||||
mark("getBalance");
|
||||
|
||||
Reference in New Issue
Block a user