mirror of
https://framagit.org/tykayn/date-poll-api
synced 2023-08-25 08:23:11 +02:00
hop
This commit is contained in:
parent
742bd5b093
commit
c5c3af3474
@ -1,23 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace App\Controller;
|
|
||||||
|
|
||||||
use FOS\RestBundle\Controller\Annotations\Get;
|
|
||||||
use FOS\RestBundle\Controller\Annotations\Route;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Class DefaultController
|
|
||||||
* @package App\Controller
|
|
||||||
* @Route("/home",name="homepage")
|
|
||||||
*/
|
|
||||||
class IndexController extends FramadateController {
|
|
||||||
/**
|
|
||||||
* @Get(path ="/index",
|
|
||||||
* 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', [] );
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user