date-poll-api/src/Controller/IndexController.php

23 lines
489 B
PHP

<?php
namespace App\Controller;
use FOS\RestBundle\Controller\Annotations\Get;
use FOS\RestBundle\Controller\Annotations\Route;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
/**
* Class DefaultController
* @package App\Controller
* @Route("/",name="homepage")
*/
class IndexController extends AbstractController {
/**
* @Get(path ="/",
* name = "get_default")
*/
public function indexAction() {
return $this->render( 'index.html.twig', [] );
}
}