18 lines
363 B
PHP
18 lines
363 B
PHP
<?php
|
|
require __DIR__ . "/vendor/autoload.php";
|
|
|
|
$dotenv = new josegonzalez\Dotenv\Loader(__DIR__ . '/.env');
|
|
$dotenv->raiseExceptions(false);
|
|
$result = $dotenv->parse();
|
|
if ($result !== false) {
|
|
$dotenv->toEnv();
|
|
}
|
|
|
|
// ROUTER
|
|
$router = new Bramus\Router\Router();
|
|
$router->setNamespace('\App\Controllers');
|
|
|
|
require __DIR__ . '/routes.php';
|
|
|
|
$router->run();
|