(:any)
Matches any character until the next slash
Example
return [
'routes' => [
[
'pattern' => '/projects/(:any)',
'action' => function (string $path) {
// react to requests
}
]
]
];
Matches any character until the next slash
return [
'routes' => [
[
'pattern' => '/projects/(:any)',
'action' => function (string $path) {
// react to requests
}
]
]
];