mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
automatic merging of duplicate feeds
This commit is contained in:
@@ -304,4 +304,14 @@ public class AdminREST extends AbstractResourceREST {
|
||||
return Response.ok().build();
|
||||
}
|
||||
|
||||
@Path("/cleanup/automerge")
|
||||
@GET
|
||||
@ApiOperation(value = "Automatically merge feeds", notes = "Merge feeds together")
|
||||
public Response autoMergeFeeds() {
|
||||
Map<String, Long> map = Maps.newHashMap();
|
||||
map.put("merged feeds",
|
||||
cleaner.cleanDuplicateFeeds());
|
||||
return Response.ok(map).build();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user