by nodesocket · 12y ago · 0 comments
fastcgi_param HTTPS $https if_not_empty;
Also, the 404 route, should be able to be defined as a custom function: Macaw::fourofour(function() {
header($_SERVER["SERVER_PROTOCOL"] . " 404 Not Found");
header("Status: 404 Not Found");
});idk. this mixes up routing and api building, right? What people currently use most to build their api (mostly afterwards) is: http://docs.guzzlephp.org/en/latest/
btw. here's a nice and new php framework I've just recently found: http://www.cygniteframework.com/2013/07/quickstart.html