2015-01-23 11:45:24 +00:00
|
|
|
<?php
|
|
|
|
|
2015-01-23 15:28:37 +00:00
|
|
|
namespace Wallabag\CoreBundle\Controller;
|
2015-01-23 11:45:24 +00:00
|
|
|
|
|
|
|
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
|
|
|
|
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
|
|
|
|
|
|
|
|
class StaticController extends Controller
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @Route("/about", name="about")
|
|
|
|
*/
|
|
|
|
public function aboutAction()
|
|
|
|
{
|
|
|
|
return $this->render(
|
2015-01-23 15:28:37 +00:00
|
|
|
'WallabagCoreBundle:Static:about.html.twig',
|
2015-01-23 11:45:24 +00:00
|
|
|
array()
|
|
|
|
);
|
|
|
|
}
|
2015-02-02 11:54:14 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @Route("/", name="homepage")
|
|
|
|
*/
|
|
|
|
public function apiAction()
|
|
|
|
{
|
|
|
|
return $this->redirect($this->generateUrl('nelmio_api_doc_index'));
|
|
|
|
}
|
2015-01-23 11:45:24 +00:00
|
|
|
}
|