on-internet
← Community

POST request not allowed exception in lumen framework

Stack Overflow ·

I have started making some routes following the lumen documentation, where it shows basic GET and POST routing. So I have tried to make some tests in order to understand how they work. While the GET method seems working as expected, the the POST router seems encounter some problems. Here below my test router: $router->post('/foo', function ($req) { var_dump($req); die(); }); Then I have tried to make a POST request using postman as below: url : http://localhost:8000/foo raw body of my request: {"key":"thisbodyrequestisdone"} So, I would expect to see the var_dump of my body $req parameter sent

Comments

Sign in or sign up to comment and upvote.

No comments yet.