aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Controller/StaticController.php
blob: 07931f582ae491d77cd89becd0dbe4184c96d74c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php

namespace Wallabag\CoreBundle\Controller;

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',
            array()
        );
    }

    /**
     * @Route("/", name="homepage")
     */
    public function apiAction()
    {
        return $this->redirect($this->generateUrl('nelmio_api_doc_index'));
    }
}