proxitok/index.php

18 lines
363 B
PHP
Raw Permalink Normal View History

2022-01-01 14:14:57 -05:00
<?php
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');
require __DIR__ . '/routes.php';
2022-01-30 18:02:52 -05:00
2022-01-28 09:54:09 -05:00
$router->run();