Fix rest controller merge

This commit is contained in:
Jeremy Benoist
2016-11-03 17:29:16 +01:00
parent 5a619812ca
commit 864c1dd23a
4 changed files with 141 additions and 0 deletions

View File

@ -5,6 +5,8 @@ namespace Wallabag\ApiBundle\Controller;
use FOS\RestBundle\Controller\FOSRestController;
use Symfony\Component\Security\Core\Exception\AccessDeniedException;
use Wallabag\CoreBundle\Entity\Entry;
use Nelmio\ApiDocBundle\Annotation\ApiDoc;
use Symfony\Component\HttpFoundation\JsonResponse;
class WallabagRestController extends FOSRestController
{
@ -19,6 +21,7 @@ class WallabagRestController extends FOSRestController
{
$version = $this->container->getParameter('wallabag_core.version');
$json = $this->get('serializer')->serialize($version, 'json');
return (new JsonResponse())->setJson($json);
}