$viewRoutes->route()
Creates a single route and injects type and a area id
$viewRoutes->route(array|string $pattern, Closure $action, string $method = 'GET', bool $auth = true)
Parameters
| Name | Type | Default |
|---|---|---|
| $patternrequired | arrayorstring |
no default value |
| $actionrequired | Closure |
no default value |
| $method | string |
'GET'
|
| $auth | bool |
true
|
Parent class
Kirby\Panel\Routes\ViewRoutes
inherited from Kirby\Panel\Routes\Routes