Creates a new BriskRoute instance
The AdonisJS application instance
Array of global middleware registered on the router
Configuration options for the brisk route
Redirects to a given route. Params from the original request will be used when no custom params are defined.
Route identifier, parameters, and options for building the redirect URL
The created route instance
Redirect request to a fixed URL
The URL to redirect to
Optional
options: { status: number }Optional redirect options including HTTP status code
The created route instance
Brisk routes exposes the API to configure the route handler by chaining one of the pre-defined methods.
For example: Instead of defining the redirect logic as a callback, one can chain the
.redirect
method.Brisk routes are always registered under the
GET
HTTP method.