Router::execute()
Creates a micro-router and executes the routing action immediately
Router::execute(string|null $path = null, string $method = 'GET', array $routes = [ ], Closure|null $callback = null)
Parameters
| Name | Type | Default |
|---|---|---|
| $path | stringornull |
null
|
| $method | string |
'GET'
|
| $routes | array |
[ ]
|
| $callback | Closureornull |
null
|