tuupola / slim-api-skeleton

Slim 3 API skeleton project for Composer
MIT License
312 stars 62 forks source link

New version not working after installation ? #53

Open learnme2019 opened 5 years ago

learnme2019 commented 5 years ago

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?

tuupola commented 5 years ago

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.