]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - src/Wallabag/CoreBundle/Controller/StaticController.php
add howto page
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Controller / StaticController.php
index 0fd19d6529859f6e480b9b8d56af2bfbc1b95c41..09be1b74f87606d0cb0b064665c572db6a41ee16 100644 (file)
@@ -7,6 +7,16 @@ use Symfony\Bundle\FrameworkBundle\Controller\Controller;
 
 class StaticController extends Controller
 {
+    /**
+     * @Route("/howto", name="howto")
+     */
+     public function howtoAction()
+     {
+         return $this->render(
+             'WallabagCoreBundle:Static:howto.html.twig',
+             array()
+         );
+     }
     /**
      * @Route("/about", name="about")
      */
@@ -17,4 +27,12 @@ class StaticController extends Controller
             array()
         );
     }
+
+    /**
+     * @Route("/", name="homepage")
+     */
+    public function apiAction()
+    {
+        return $this->redirect($this->generateUrl('nelmio_api_doc_index'));
+    }
 }