Update for new application bootstrap, default redirect handling was added

This commit is contained in:
Erik Amaru Ortiz
2014-03-13 10:23:50 -04:00
parent b4d32fcb58
commit b6a7122bb7
2 changed files with 24 additions and 2 deletions

View File

@@ -57,6 +57,15 @@ try {
case Maveriks\WebApplication::RUNNING_API:
$app->run(Maveriks\WebApplication::SERVICE_API);
break;
case Maveriks\WebApplication::RUNNING_INDEX:
$response = new Maveriks\Http\Response(file_get_contents("index.html"), 302);
$response->send();
break;
case Maveriks\WebApplication::RUNNING_DEFAULT:
$app->run(Maveriks\WebApplication::REDIRECT_DEFAULT);
break;
}
} catch (Exception $e) {