Skip to content

Instantly share code, notes, and snippets.

@tarlepp
Created November 22, 2020 14:24
Show Gist options
  • Save tarlepp/32f287a910cd7bf3b8fece880ff34c95 to your computer and use it in GitHub Desktop.
Save tarlepp/32f287a910cd7bf3b8fece880ff34c95 to your computer and use it in GitHub Desktop.
<?php
declare(strict_types = 1);
namespace App\Controller;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
use Throwable;
class IndexController
{
/**
* Default application response when requested root.
*
* @Route(
* path="/",
* methods={"GET"}
* )
*
* @throws Throwable
*/
public function __invoke(): Response
{
return new Response('', Response::HTTP_OK);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment