From: Nicolas LÅ“uillet Date: Fri, 20 Feb 2015 11:00:20 +0000 (+0100) Subject: returns serialzed object for GET /entries X-Git-Tag: 2.0.0-alpha.0~73^2~23 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;ds=inline;h=0ed6302212eec00e188c61acbd92bde80406f4ba;p=github%2Fwallabag%2Fwallabag.git returns serialzed object for GET /entries --- diff --git a/src/Wallabag/CoreBundle/Controller/WallabagRestController.php b/src/Wallabag/CoreBundle/Controller/WallabagRestController.php index cadd7e75..d48c7bbb 100644 --- a/src/Wallabag/CoreBundle/Controller/WallabagRestController.php +++ b/src/Wallabag/CoreBundle/Controller/WallabagRestController.php @@ -77,7 +77,7 @@ class WallabagRestController extends Controller $hateoas = HateoasBuilder::create()->build(); $json = $hateoas->serialize($entries, 'json'); - return $entries; + return new Response($json, 200, array('application/json')); } /**