rendering section i think

This commit is contained in:
polycord 2024-07-25 19:29:48 +03:00
parent 6cd420ea3c
commit da624182b0

View file

@ -207,6 +207,14 @@
}
});
$router->get('/section', function() {
global $twig;
$twig->addGlobal('pageUri', '/section');
echo $twig->render('section.twig');
});
$router->get('/u/([a-z0-9_\.]+)', function($name) {
global $twig, $mysql, $discord;
@ -224,6 +232,7 @@
}
});
// ---------------- Admin ---------------- //
$router->get('/admin', function() {