Skip to content

Kirby 4.5.0

(:num)

Matches any number

Example

/site/config/config.php
return [
  'routes' => [
    [
      'pattern' => '/projects/(:num)',
      'action'  => function ($num) {
        // react to requests
      }
    ]
  ]
];