-
Notifications
You must be signed in to change notification settings - Fork 30
Open
Description
Anyone know if its possible to combine these 2 type of route expressions?
The Slim3 documentation gives this example:
$app = new \Slim\App();
$app->any('/books/[{id}]', function ($request, $response, $args) {
// Apply changes to books or book identified by $args['id'] if specified.
// To check which method is used: $request->getMethod();
});
Is the regex format "[{id}]" just semantical? Do the outer brackets actually do anything to parse the values?
What is the best practice for accepting one or more ids of a specific format?
I tried using this pattern but it does not work...
/books/{[id:[0-9]+]}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels