slim-api-skeleton
slim-api-skeleton copied to clipboard
New version not working after installation ?
Hi Tuupola, I was trying out composer create-project --no-interaction --stability=dev tuupola/slim-api-skeleton app. Then when I tried to run I got this output
<?php
require __DIR__ . "/../app.php";
What else settings can I run to enable it properly? Secondly where should I put the route file now in this new version because in my older version I had everything in src folder both the middleware and routes file?
Looks like your webserver is not parsing .php
files as php files. Enabling PHP in the webserver config should fix the problem. How that is done depends on your webserver and hosting provider.
Routes can be found in routes/
folder. You can also add new route files there and then include them in app.php
.