Slim 4 Subfolder Project

In slim 3 I was able to put the endpoint into any folder at any level.

For example if I put myself I create a folder “/public/test/xpto” and put the php file and htaccess in that folder slim 3 recognized the route


from this folder where index.php is

now in slim 4 he is recognizing the route this way

/ test/xpto/router1
/ test/xpto/router2

this using the slim example…

is there any way to change this behavior

Maybe this ?
Running Slim 4 in a subdirectory