Add TuxiNet branding and document templates
This commit is contained in:
18
public/index.php
Normal file
18
public/index.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
use App\Core\Config;
|
||||
use App\Core\Router;
|
||||
|
||||
require __DIR__ . '/../bootstrap/autoload.php';
|
||||
|
||||
Config::getInstance();
|
||||
|
||||
$router = new Router();
|
||||
require base_path('routes/web.php');
|
||||
|
||||
$response = $router->dispatch($_SERVER['REQUEST_METHOD'], $_SERVER['REQUEST_URI']);
|
||||
http_response_code($response->getStatus());
|
||||
foreach ($response->getHeaders() as $header => $value) {
|
||||
header($header . ': ' . $value);
|
||||
}
|
||||
echo $response->getBody();
|
||||
Reference in New Issue
Block a user