wallabag/src/Wallabag/CoreBundle/Controller/StaticController.php

29 lines
606 B
PHP
Raw Normal View History

2015-01-23 11:45:24 +00:00
<?php
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(
'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
}