proxitok/index.php
Pablo Ferreiro cd524c8da8
fixed dotenv
2022-05-22 12:12:37 +02:00

16 lines
322 B
PHP

<?php
require __DIR__ . "/vendor/autoload.php";
$dotenv = new josegonzalez\Dotenv\Loader(__DIR__ . '/.env');
$dotenv->raiseExceptions(false);
$dotenv->parse();
$dotenv->toEnv();
// ROUTER
$router = new Bramus\Router\Router();
$router->setNamespace('\App\Controllers');
require __DIR__ . '/routes.php';
$router->run();