Base du projet 'application ticketing'
This commit is contained in:
20
backend/src/Controller/IndexController.php
Normal file
20
backend/src/Controller/IndexController.php
Normal file
@ -0,0 +1,20 @@
|
||||
<?php
|
||||
namespace App\Controller;
|
||||
|
||||
use App\Http\DataResponse;
|
||||
use Symfony\Component\Routing\Annotation\Route;
|
||||
|
||||
class IndexController
|
||||
{
|
||||
|
||||
/**
|
||||
* @Route("/api/v1", name="api_v1_index")
|
||||
*/
|
||||
public function showAPIV1Index()
|
||||
{
|
||||
return new DataResponse([
|
||||
'version' => '1',
|
||||
]);
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user