get('/', static fn () => (new HomeController())->index()); $router->get('/catalog', static fn () => (new CatalogController())->index()); $router->get('/catalog/{slug}', static fn (string $slug) => (new CatalogController())->category($slug)); $router->dispatch($_SERVER['REQUEST_METHOD'], $_SERVER['REQUEST_URI']);