Whenever I try to send a HTTP PATCH request I get the error message Slim\Exception\HttpMethodNotAllowedException
Method not allowed. Must be one of: GET, POST
.
Surely there must be a way of enabling this in “a micro framework for APIs”?
Whenever I try to send a HTTP PATCH request I get the error message Slim\Exception\HttpMethodNotAllowedException
Method not allowed. Must be one of: GET, POST
.
Surely there must be a way of enabling this in “a micro framework for APIs”?
Hi @kdekooter
If you are using Slim version 4, take a look at Routing Docs:
You can add a route to handle Patch requests.
HI,
How does your route look like?
I just fall over an article about laravel and patch requests.
So I hope this helps you finding a solution:
all the best
Mario