When attempting to parse the URL/Query string from a PUT request it is returning as empty array.
With an Expressive route like:
$app->put('/forms/{id:\d+}', Handler\FormsUpdateHandler::class, 'forms.update');
With a Content-Type of ‘application/Json’, containing a Json object in the Body, while making a PUT request to http://localhost/forms/2/
public function handle(ServerRequestInterface $request) : ResponseInterface
{
echo $request->getQueryParams()['id'];die();
}
I’ve added the helper to allow getParseBody(), but haven’t found anything allowing to parse the URL.
Does anyone have any insight into how to get the URL args in a PUT request with Expressive?