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-01-03 07:43:22 -05:00
|
|
|
// LOAD DOTENV
|
2022-03-11 14:50:11 -05:00
|
|
|
$dotenv = Dotenv\Dotenv::createImmutable(__DIR__ . '/..');
|
2022-01-03 18:18:13 -05:00
|
|
|
$dotenv->safeLoad();
|
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();
|