ajuste no tratamento da home

This commit is contained in:
Renan Bernordi 2025-01-26 19:46:14 -03:00
parent 9a3753e80a
commit f8f30b2c4d

View file

@ -37,7 +37,7 @@ class Router
$this->dispatcher = FastRoute\simpleDispatcher(function(FastRoute\RouteCollector $r) {
// Rota principal - página inicial
// Main route - home page
$r->addRoute('GET', '/', function() {
$r->addRoute(['GET','POST'], '/', function() {
// Inicialização das variáveis para a view principal
// Initialize variables for the main view
require_once __DIR__ . '/../config.php';