aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/ApiBundle/Controller/WallabagRestController.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Wallabag/ApiBundle/Controller/WallabagRestController.php')
-rw-r--r--src/Wallabag/ApiBundle/Controller/WallabagRestController.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/Wallabag/ApiBundle/Controller/WallabagRestController.php b/src/Wallabag/ApiBundle/Controller/WallabagRestController.php
index 35a90edd..5f342825 100644
--- a/src/Wallabag/ApiBundle/Controller/WallabagRestController.php
+++ b/src/Wallabag/ApiBundle/Controller/WallabagRestController.php
@@ -340,6 +340,19 @@ class WallabagRestController extends FOSRestController
340 340
341 return $this->renderJsonResponse($json); 341 return $this->renderJsonResponse($json);
342 } 342 }
343 /**
344 * Retrive version.
345 *
346 * @return Response
347 */
348 public function getVersionAction()
349 {
350 $version = $this->container->getParameter('wallabag_core.version');
351
352 $json = $this->get('serializer')->serialize($version, 'json');
353
354 return $this->renderJsonResponse($json);
355 }
343 356
344 /** 357 /**
345 * Validate that the first id is equal to the second one. 358 * Validate that the first id is equal to the second one.