php - My Slim API gives me a 404 error page -
i'm making api angular app allow me access database slim. followed tutorial http://anjanawijesundara.blogspot.ca/2015/04/crud-application-with-angularjs.html i have 'angularjs' folder. in it, have index.html file, 'api' folder api, 'app' folder, angular app, , 'assets' folder css, img , other js file. i installed slim in 'api' folder composer (it created vendor folder) , have 'index.php' file next vendor folder. my 'index.php' file (in api folder) looks far: <?php require 'vendor/autoload.php'; $app = new \slim\app; $app->get('/types', 'gettypes'); $app->get('/types/:id', 'gettypebyid'); $app->run(); function db_connection() { $dbhost = "localhost"; $dbuser = "kevdug_portfolio"; $dbpass = "*****************"; $dbname = "portfolio"; $dbh = new pdo("mysql:host=$dbhost;dbname=$dbname", $dbuse...