From db208b84f61b94825488004fe4796df0ce2065e1 Mon Sep 17 00:00:00 2001 From: Kristaps <53869559+krmu@users.noreply.github.com> Date: Thu, 11 Jan 2024 21:01:55 +0200 Subject: [PATCH] Grouping added for readme --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 05fd2cd..d097e36 100644 --- a/README.md +++ b/README.md @@ -1058,6 +1058,7 @@ Flight::start() // Starts the framework. Flight::stop() // Stops the framework and sends a response. Flight::halt(int $code = 200, string $message = '') // Stop the framework with an optional status code and message. Flight::route(string $pattern, callable $callback, bool $pass_route = false) // Maps a URL pattern to a callback. +Flight::group(string $pattern, callable $callback) // Creates groupping for urls, pattern must be a string. Flight::redirect(string $url, int $code) // Redirects to another URL. Flight::render(string $file, array $data, ?string $key = null) // Renders a template file. Flight::error(Throwable $error) // Sends an HTTP 500 response.