How do i fixed the trailing slash problem?
I tried How to access directory's index.php without a trailing slash AND not get 301 redirect. Adding the htaccess DirectorySlash Off etc but it doesnt work.
Image Link For the POST Response https://i.stack.imgur.com/n2TVA.jpg
Code For the API POST:
$response = "";
if(empty($_POST)) {
$response = array("Message"=>"Post Not Success");
} else {
$data = $_POST['name'];
$response = array("Message"=>"Post Success","Name"=>$data);
}
echo json_encode($response, JSON_FORCE_OBJECT);