mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
Allow API key for count of unread
This commit is contained in:
@@ -413,7 +413,7 @@ public class CategoryREST {
|
|||||||
@UnitOfWork
|
@UnitOfWork
|
||||||
@ApiOperation(value = "Get unread count for feed subscriptions", response = UnreadCount.class, responseContainer = "List")
|
@ApiOperation(value = "Get unread count for feed subscriptions", response = UnreadCount.class, responseContainer = "List")
|
||||||
@Timed
|
@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);
|
Map<Long, UnreadCount> unreadCount = feedSubscriptionService.getUnreadCount(user);
|
||||||
return Response.ok(Lists.newArrayList(unreadCount.values())).build();
|
return Response.ok(Lists.newArrayList(unreadCount.values())).build();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user