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

24 lines
535 B
PHP
Raw Normal View History

2020-01-22 12:17:49 +01:00
<?php
namespace App\Controller;
use FOS\RestBundle\Controller\Annotations\Get;
use FOS\RestBundle\Controller\Annotations\Route;
/**
* Class DefaultController
* @package App\Controller
* @Route("/",name="homepage")
*/
2020-04-16 17:11:01 +02:00
class IndexController extends FramadateController {
2020-01-22 12:17:49 +01:00
/**
* @Get(path ="/",
* name = "get_default")
*/
public function indexAction() {
2020-04-17 12:04:37 +02:00
return $this->json( ["message"=>"welcome to the framadate api, ask /api/v1/doc.json for endpoints"],200);
// return $this->render( 'index.html.twig', [] );
2020-01-22 12:17:49 +01:00
}
}