little stash...
This commit is contained in:
11
public/index.php
Normal file
11
public/index.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
require_once __DIR__ . '/../src/Autoloader.php';
|
||||
|
||||
$autoloader = new Autoloader();
|
||||
$autoloader->addNamespace('src', __DIR__ . '/../src');
|
||||
$autoloader->register();
|
||||
|
||||
$router = new Router();
|
||||
require_once __DIR__ . '/../config/routes.php';
|
||||
|
||||
$router->dispatch($_SERVER['REQUEST_METHOD'], $_SERVER['REQUEST_URI']);
|
||||
Reference in New Issue
Block a user