forked from wallabag/wallabag
Add nbEntries to the API tags list response
So client will be able to do the same as in the web UI. Also remove empty `div` from the tags template.
This commit is contained in:
@ -23,7 +23,7 @@ class TagRestController extends WallabagRestController
|
||||
|
||||
$tags = $this->getDoctrine()
|
||||
->getRepository('WallabagCoreBundle:Tag')
|
||||
->findAllTags($this->getUser()->getId());
|
||||
->findAllFlatTagsWithNbEntries($this->getUser()->getId());
|
||||
|
||||
$json = $this->get('jms_serializer')->serialize($tags, 'json');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user