src/Controller/Developers/Api/V1/Platform/HelloAction.php line 19

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Controller\Developers\Api\V1\Platform;
  4. use OpenApi\Annotations as OA;
  5. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  6. use Symfony\Component\HttpFoundation\Response;
  7. use Symfony\Component\Routing\Annotation\Route;
  8. /**
  9. * @OA\Get(
  10. * tags={"Platform"},
  11. * summary="Hello",
  12. * description="Says 'Hello world !'"
  13. * )
  14. */
  15. class HelloAction extends AbstractController
  16. {
  17. #[Route(
  18. path: '/platform/hello',
  19. name: 'platform_hello',
  20. methods: ['GET'],
  21. )]
  22. public function __invoke(): Response
  23. {
  24. return new Response("Hello world !");
  25. }
  26. }