Possible error to group routes
Sleon4 opened this issue · 0 comments
Sleon4 commented
I have grouped routes in such a way that the groups should look like this based on the string that I am writing:
$router->group(['prefix' => 'users'], function($router) {
$router->group(['prefix' => 'read'], function($router) {
$router->get('/', fn() => null);
$router->get('by-id', fn() => null);
});
});
When obtaining the routes I obtain them in the following way through the library:
- users/read
- users/read/by-id
Having written a route of the form $router->get('/', fn() => null) you should get a route like 'users/read/' but not a 'users/read' route, this is an error mine?