2022-01-01 14:14:57 -05:00
|
|
|
<?php
|
2022-03-13 13:22:36 -04:00
|
|
|
require __DIR__ . "/vendor/autoload.php";
|
2022-01-01 14:14:57 -05:00
|
|
|
|
2022-05-22 05:48:06 -04:00
|
|
|
$dotenv = new josegonzalez\Dotenv\Loader(__DIR__ . '/.env');
|
2022-05-22 06:12:37 -04:00
|
|
|
$dotenv->raiseExceptions(false);
|
2022-05-22 06:31:49 -04:00
|
|
|
$result = $dotenv->parse();
|
|
|
|
if ($result !== false) {
|
|
|
|
$dotenv->toEnv();
|
|
|
|
}
|
2022-01-01 14:14:57 -05:00
|
|
|
|
2022-01-28 09:54:09 -05:00
|
|
|
// ROUTER
|
|
|
|
$router = new Bramus\Router\Router();
|
2022-01-30 18:02:52 -05:00
|
|
|
$router->setNamespace('\App\Controllers');
|
|
|
|
|
2022-03-13 13:22:36 -04:00
|
|
|
require __DIR__ . '/routes.php';
|
2022-01-30 18:02:52 -05:00
|
|
|
|
2022-01-28 09:54:09 -05:00
|
|
|
$router->run();
|