proxitok/public/index.php
2022-03-11 18:56:19 +01:00

15 lines
285 B
PHP

<?php
require __DIR__ . "/../vendor/autoload.php";
// LOAD DOTENV
$dotenv = Dotenv\Dotenv::createImmutable(__DIR__);
$dotenv->safeLoad();
// ROUTER
$router = new Bramus\Router\Router();
$router->setNamespace('\App\Controllers');
require __DIR__ . '/../routes.php';
$router->run();