diff options
Diffstat (limited to 'src/Wallabag/ApiBundle/Controller/WallabagRestController.php')
-rw-r--r-- | src/Wallabag/ApiBundle/Controller/WallabagRestController.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Wallabag/ApiBundle/Controller/WallabagRestController.php b/src/Wallabag/ApiBundle/Controller/WallabagRestController.php index 544c1ea9..1ff593f5 100644 --- a/src/Wallabag/ApiBundle/Controller/WallabagRestController.php +++ b/src/Wallabag/ApiBundle/Controller/WallabagRestController.php | |||
@@ -5,6 +5,8 @@ namespace Wallabag\ApiBundle\Controller; | |||
5 | use FOS\RestBundle\Controller\FOSRestController; | 5 | use FOS\RestBundle\Controller\FOSRestController; |
6 | use Symfony\Component\Security\Core\Exception\AccessDeniedException; | 6 | use Symfony\Component\Security\Core\Exception\AccessDeniedException; |
7 | use Wallabag\CoreBundle\Entity\Entry; | 7 | use Wallabag\CoreBundle\Entity\Entry; |
8 | use Nelmio\ApiDocBundle\Annotation\ApiDoc; | ||
9 | use Symfony\Component\HttpFoundation\JsonResponse; | ||
8 | 10 | ||
9 | class WallabagRestController extends FOSRestController | 11 | class WallabagRestController extends FOSRestController |
10 | { | 12 | { |
@@ -19,6 +21,7 @@ class WallabagRestController extends FOSRestController | |||
19 | { | 21 | { |
20 | $version = $this->container->getParameter('wallabag_core.version'); | 22 | $version = $this->container->getParameter('wallabag_core.version'); |
21 | $json = $this->get('serializer')->serialize($version, 'json'); | 23 | $json = $this->get('serializer')->serialize($version, 'json'); |
24 | |||
22 | return (new JsonResponse())->setJson($json); | 25 | return (new JsonResponse())->setJson($json); |
23 | } | 26 | } |
24 | 27 | ||