I have Slim 4 app that is deployed into a subfolder and called like so: https://subdomain.example.com/api/foo
Inside my code I have this line:
$app->setBasePath("/api");
According to the docs path and ignore shouldn't include basepath. But this doesn't work:
"path" => "/",
"ignore" => ["/foo"],
After adding basepath like below the code works:
"path" => "/api",
"ignore" => ["/api/foo"],
There are some differences between Slim 3 and Slim 4 according to @tuupola comment here