From 65e2c2c7b959d359bdfa4a9ae464ce5174eeabe1 Mon Sep 17 00:00:00 2001 From: Carsten Otto Date: Fri, 16 Sep 2022 16:28:59 +0200 Subject: [PATCH] add missing annotation --- .../java/de/cotto/lndmanagej/controller/RatingController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/main/java/de/cotto/lndmanagej/controller/RatingController.java b/web/src/main/java/de/cotto/lndmanagej/controller/RatingController.java index 3afee7e3..08fc47b8 100644 --- a/web/src/main/java/de/cotto/lndmanagej/controller/RatingController.java +++ b/web/src/main/java/de/cotto/lndmanagej/controller/RatingController.java @@ -32,7 +32,7 @@ public class RatingController { @Timed @GetMapping("/channel/{channelId}/rating") - public RatingDto getRatingForChannel(ChannelId channelId) throws NotFoundException { + public RatingDto getRatingForChannel(@PathVariable ChannelId channelId) throws NotFoundException { return ratingService.getRatingForChannel(channelId) .map(RatingDto::fromModel) .orElseThrow(NotFoundException::new);