Created
November 22, 2020 14:24
-
-
Save tarlepp/32f287a910cd7bf3b8fece880ff34c95 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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