Closed RBFraphael closed 2 years ago
Hi there,
Thanks for reporting but it looks like this is a question which can be asked on a support channel. Please only use this issue tracker for reporting bugs with the library itself. If you have a question on how to use functionality provided by this repo you can try one of the following channels:
However, this issue will not be locked and everyone is still free to discuss solutions to your problem!
Thanks.
@driesvints I'm sorry for the persistence, but this looks like a bug for me, because only on root routes, I can't add a POST route (like having two root routes, one POST /
and one GET /
). This is weird. I've tried to POST to another route just for testing, and tried creating another two routes with same URI and multiple methods (for example, POST /test
and GET /test
), and it's working fine. Only in root URI I can't create POST and GET routes.
I think this may be a bug because, like in my scenario, developers can't make forms or microsservices that POST something to root (like a landing page with a form, or a microsservice which his base URL is managed at server).
Lumen uses fast route behind the scenes so you need to post an issue on their repo. We don't manage this.
Description:
I'm developing a microsservice with Lumen, and I need to create a root route that acceps GET and POST methods. Tried:
When calling
POST localhost/test/api
, it detects the request as a GET, never calling thecreate
function. But, when trying with a trailing slash when requesting POST (for example,POST localhost/test/api/
insteadPOST localhost/test/api
), GET requests not works anymore, and only POST is working (he never calls thelist
function).Steps To Reproduce: