14 lines
404 B
PHP
14 lines
404 B
PHP
<?php
|
|
require_once __DIR__ . '/../vendor/autoload.php';
|
|
|
|
$uri = $_SERVER['REQUEST_URI'];
|
|
|
|
if ($uri === '/' || $uri === '/index.php') {
|
|
(new \Aidan\Tinytalk\Controller\HomeController())->index();
|
|
} elseif ($uri === '/webmaster' || $uri === '/webmaster/index.php') {
|
|
(new \Aidan\Tinytalk\Controller\WebmasterController())->index();
|
|
} else {
|
|
http_response_code(404);
|
|
echo "404 Not Found";
|
|
}
|