DNSBlock
This commit is contained in:
21
public/index.php
Normal file
21
public/index.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
require_once __DIR__ . '/../vendor/autoload.php';
|
||||
|
||||
session_start();
|
||||
|
||||
use App\Core\Router;
|
||||
use Dotenv\Dotenv;
|
||||
|
||||
// Load Env
|
||||
$dotenv = Dotenv::createImmutable(__DIR__ . '/../');
|
||||
$dotenv->safeLoad();
|
||||
|
||||
// Init Router
|
||||
$router = new Router();
|
||||
|
||||
// Load Routes
|
||||
require_once __DIR__ . '/../app/routes.php';
|
||||
|
||||
// Dispatch
|
||||
$router->dispatch($_SERVER['REQUEST_METHOD'], $_SERVER['REQUEST_URI']);
|
||||
Reference in New Issue
Block a user