Hi all,
I have written rest API using a slim framework. Now I have migrated my code from one server to other servers. When I call my API map routing I am getting 404 error. and after the renaming of the same API map routing with a single character the function is started calling.
May I know why it is not called with the actual function name.
example :
$app->map(’/getlatestpackage’, function() use ($app, $DB, $CFG) { // actual map url is https://myurl/getlatestpackage is not calling
echo “hi”
}
$app->map(’/getlatestpackage1’, function() use ($app, $DB, $CFG) {
// after the renaming of actual map url is https://myurl/getlatestpackage1 is started calling now
echo “hi”
}