I'm trying to receive posted (application/json) data to my Php project from using API.
My Php project file located there:
v1/project/index.php
$request = file_get_contents('php://input');
When I use API url like this :
[POST] localhost/v1/project/
It is working. But:
[POST] localhost/v1/project
Not working. I want to share this API without slash on end of URL. How can I fix it?