24 lines
535 B
PHP
Executable File
24 lines
535 B
PHP
Executable File
<?php
|
|
|
|
namespace App\Controller;
|
|
|
|
use FOS\RestBundle\Controller\Annotations\Get;
|
|
use FOS\RestBundle\Controller\Annotations\Route;
|
|
|
|
/**
|
|
* Class DefaultController
|
|
* @package App\Controller
|
|
* @Route("/",name="homepage")
|
|
*/
|
|
class IndexController extends FramadateController {
|
|
/**
|
|
* @Get(path ="/",
|
|
* name = "get_default")
|
|
*/
|
|
public function indexAction() {
|
|
|
|
return $this->json( ["message"=>"welcome to the framadate api, ask /api/v1/doc.json for endpoints"],200);
|
|
// return $this->render( 'index.html.twig', [] );
|
|
}
|
|
}
|