fix: twig var not found

This commit is contained in:
TheClashFruit 2023-09-15 17:44:03 +02:00
parent 78bfef9a1c
commit 4e729bbc61
Signed by: TheClashFruit
GPG key ID: CF4A319B9A73290C

View file

@ -17,14 +17,20 @@
});
$router->get('/', function() {
global $twig;
echo $twig->render('index.twig');
});
$router->get('/nations', function() {
global $twig;
echo $twig->render('index.twig');
});
$router->set404(function() {
global $twig;
http_response_code(404);
echo $twig->render('404.twig');