for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types = 1);
/**
* /src/Controller/IndexController.php
*
* @author TLe, Tarmo Leppänen <[email protected]>
*/
namespace App\Controller;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpKernel\Attribute\AsController;
use Symfony\Component\Routing\Annotation\Route;
* Class IndexController
* @package App\Controller
#[AsController]
class IndexController
{
* Default application response when requested root.
#[Route(
path: '/',
methods: [Request::METHOD_GET],
)]
public function __invoke(): JsonResponse
return new JsonResponse();
}