You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
452 B
22 lines
452 B
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Controller;
|
|
|
|
use Symfony\Component\HttpFoundation\JsonResponse;
|
|
use Symfony\Component\Routing\Annotation\Route;
|
|
|
|
class IndexController
|
|
{
|
|
/**
|
|
* @Route("/", name="index.any")
|
|
*/
|
|
public function index(): JsonResponse
|
|
{
|
|
return new JsonResponse(
|
|
JsonResponse::$statusTexts[JsonResponse::HTTP_BAD_REQUEST],
|
|
JsonResponse::HTTP_BAD_REQUEST
|
|
);
|
|
}
|
|
}
|