Пагинация

This commit is contained in:
2022-09-03 16:13:03 +08:00
parent bd1dea84d5
commit d797ff933b
3 changed files with 33 additions and 3 deletions

View File

@@ -53,6 +53,10 @@ final class Bootstrapper
'GET /',
fn() => (new HomeController())->index()
);
Flight::route(
'GET /page/@page:[0-9]+',
fn($page) => (new HomeController())->index((int)$page)
);
Flight::route(
'GET /faq',
fn() => (new HomeController())->faq()