add node details

This commit is contained in:
Carsten Otto
2021-11-19 17:31:35 +01:00
parent 840938676e
commit e938c2d8a0
6 changed files with 144 additions and 7 deletions

View File

@@ -26,8 +26,8 @@ public class ChannelDetailsController {
}
@GetMapping("/details")
public ChannelDetailsDto getChannelDetails(@PathVariable ChannelId channelId) throws NotFoundException {
metrics.mark(MetricRegistry.name(getClass(), "getChannelDetails"));
public ChannelDetailsDto getDetails(@PathVariable ChannelId channelId) throws NotFoundException {
metrics.mark(MetricRegistry.name(getClass(), "getDetails"));
LocalChannel localChannel = channelService.getLocalChannel(channelId).orElse(null);
if (localChannel == null) {
throw new NotFoundException();