Skip to content

Commit

Permalink
Fix optional URL part in README example
Browse files Browse the repository at this point in the history
  • Loading branch information
samdark committed Dec 27, 2021
1 parent 11c1629 commit dd42a87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -161,7 +161,7 @@ Defaults for parameters could be provided via `defaults()` method:
```php
use Yiisoft\Router\Route;

Route::get('/api/v{version}')
Route::get('/api[/v{version}]')
->name('api-index')
->action(ApiAction::class)
->defaults(['version' => 1]);
Expand Down

0 comments on commit dd42a87

Please sign in to comment.