Merge pull request #445 from KarelWintersky/patch-1

Update README.md
This commit is contained in:
Simon Sessingø
2021-03-17 19:14:15 +01:00
committed by GitHub

View File

@@ -484,13 +484,13 @@ SimpleRouter::get('/user/{name}', function ($name) {
// ... do stuff
})->where('name', '[A-Za-z]+');
})->where([ 'name' => '[A-Za-z]+' ]);
SimpleRouter::get('/user/{id}', function ($id) {
// ... do stuff
})->where('id', '[0-9]+');
})->where([ 'id' => '[0-9]+' ]);
SimpleRouter::get('/user/{id}/{name}', function ($id, $name) {