20 lines
324 B
PHP
20 lines
324 B
PHP
<?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',
|
|
]);
|
|
}
|
|
|
|
} |