forked from wallabag/wallabag
Added route to list entries with annotations
This commit is contained in:
committed by
Jeremy Benoist
parent
9a6146d2ef
commit
dce50ddb79
@ -47,7 +47,7 @@ class ExportController extends Controller
|
||||
*
|
||||
* @Route("/export/{category}.{format}", name="export_entries", requirements={
|
||||
* "format": "epub|mobi|pdf|json|xml|txt|csv",
|
||||
* "category": "all|unread|starred|archive|tag_entries|untagged|search|same_domain"
|
||||
* "category": "all|unread|starred|archive|tag_entries|untagged|search|with_annotations|same_domain"
|
||||
* })
|
||||
*
|
||||
* @return \Symfony\Component\HttpFoundation\Response
|
||||
@ -80,6 +80,13 @@ class ExportController extends Controller
|
||||
->getResult();
|
||||
|
||||
$title = 'Search ' . $searchTerm;
|
||||
} elseif ('with_annotations' === $category) {
|
||||
$entries = $repository->getBuilderForAnnotationsByUser(
|
||||
$this->getUser()->getId()
|
||||
)->getQuery()
|
||||
->getResult();
|
||||
|
||||
$title = 'With annotations';
|
||||
} else {
|
||||
$entries = $repository
|
||||
->$methodBuilder($this->getUser()->getId())
|
||||
|
||||
Reference in New Issue
Block a user