Allow API key for count of unread

This commit is contained in:
Jorengarenar
2023-01-10 00:34:25 +01:00
parent 3271d69fcb
commit f7d34983e0

View File

@@ -413,7 +413,7 @@ public class CategoryREST {
@UnitOfWork
@ApiOperation(value = "Get unread count for feed subscriptions", response = UnreadCount.class, responseContainer = "List")
@Timed
public Response getUnreadCount(@ApiParam(hidden = true) @SecurityCheck User user) {
public Response getUnreadCount(@ApiParam(hidden = true) @SecurityCheck(apiKeyAllowed = true) User user) {
Map<Long, UnreadCount> unreadCount = feedSubscriptionService.getUnreadCount(user);
return Response.ok(Lists.newArrayList(unreadCount.values())).build();
}