Add the index controller
This commit is contained in:
23
src/Controller/ConferenceController.php
Normal file
23
src/Controller/ConferenceController.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace App\Controller;
|
||||
|
||||
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
use Symfony\Component\Routing\Attribute\Route;
|
||||
|
||||
class ConferenceController extends AbstractController
|
||||
{
|
||||
#[Route('/', name: 'homepage')]
|
||||
public function index(): Response
|
||||
{
|
||||
return new Response(<<<EOF
|
||||
<html>
|
||||
<body>
|
||||
<img src="/images/under-construction.gif" />
|
||||
</body>
|
||||
</html>
|
||||
EOF
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user