+ /**
+ * Retrieve information about the wallabag instance.
+ *
+ * @ApiDoc()
+ *
+ * @return JsonResponse
+ */
+ public function getInfoAction()
+ {
+ $info = [
+ 'appname' => 'wallabag',
+ 'version' => $this->container->getParameter('wallabag_core.version'),
+ 'allowed_registration' => $this->container->getParameter('wallabag_user.registration_enabled'),
+ ];
+
+ return (new JsonResponse())->setJson($this->get('jms_serializer')->serialize($info, 'json'));
+ }
+