Skip to content

Kirby 6.0.0

$routes->route()

Creates a single route and injects type and a area id

$routes->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\Routes