Refactor homepage
This commit is contained in:
@@ -1,13 +1,17 @@
|
||||
<?php
|
||||
namespace App\Controller;
|
||||
|
||||
use Symfony\Bridge\Twig\Attribute\Template;
|
||||
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
use Symfony\Component\Routing\Annotation\Route;
|
||||
|
||||
class GuiController extends AbstractController {
|
||||
#[Route('/')]
|
||||
public function index(): Response {
|
||||
return $this->render('/index.html.twig');
|
||||
#[Template('/index.html.twig')]
|
||||
public function index(): Array {
|
||||
return [
|
||||
'title' => 'Joe Carstairs',
|
||||
'description' => 'Joe Carstairs\' personal website',
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user