add missing annotation

This commit is contained in:
Carsten Otto
2022-09-16 16:28:59 +02:00
parent adc750dcf1
commit 65e2c2c7b9

View File

@@ -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);