get()
get(string $path, mixed $handler, string|null $name = null) : \Omega\Routing\Route
Get method.
Adds a GET
route to the router.
Parameters
string | $path | Holds the path pattern for the route. |
mixed | $handler | Holds the handler for the route. |
string|null | $name | Holds the route name or null. |
Returns
\Omega\Routing\Route —Returns the added Route instance.