fix GET /api/entries/{entry}/tags

This commit is contained in:
Nicolas Lœuillet 2015-02-20 20:36:05 +01:00
parent 0a018fe039
commit 1bd12b6229

View file

@ -196,7 +196,7 @@ class WallabagRestController extends Controller
*/
public function getEntriesTagsAction(Entry $entry)
{
$json = $this->get('serializer')->serialize($entry, 'json');
$json = $this->get('serializer')->serialize($entry->getTags(), 'json');
return new Response($json, 200, array('application/json'));
}