I have an API route that should accept more than one parameter, but it seems that only one parameter is being recognised, like this:
new Route(
['POST'],
'v1/myapiendpoint/:nr/:id',
'mycomponent.mycontrolerfunction',
['nr' => '(\d+)', 'id' => '(\d+)' ], // more than one parameter not recognized?!
[
'component' => 'com_mycomponent',
'public' => false
]
)
How can I define routes with more than one parameter? Is this even possible?