PlaintextController.php 343 B

1234567891011121314151617
  1. <?php
  2. namespace App\Controller;
  3. use Symfony\Component\HttpFoundation\Response;
  4. use Symfony\Component\Routing\Annotation\Route;
  5. class PlaintextController
  6. {
  7. /**
  8. * @Route("/plaintext")
  9. */
  10. public function plaintext(): Response
  11. {
  12. return new Response('Hello, World!', 200, ['Content-Type' => 'text/plain']);
  13. }
  14. }