Code cleanup, following and gif support
This commit is contained in:
parent
493f56a052
commit
30954f3d3a
21 changed files with 318 additions and 123 deletions
|
|
@ -1,16 +1,12 @@
|
|||
<?php
|
||||
require __DIR__ . "/vendor/autoload.php";
|
||||
use Steampixel\Route;
|
||||
use Helpers\Misc;
|
||||
|
||||
// LOAD DOTENV
|
||||
$dotenv = Dotenv\Dotenv::createImmutable(__DIR__);
|
||||
$dotenv->safeLoad();
|
||||
|
||||
// -- HELPERS -- //
|
||||
function getSubdir(): string {
|
||||
return isset($_ENV['APP_SUBDIR']) && !empty($_ENV['APP_SUBDIR']) ? $_ENV['APP_SUBDIR'] : '';
|
||||
}
|
||||
|
||||
require __DIR__ . '/routes/index.php';
|
||||
|
||||
Route::run(getSubdir());
|
||||
Route::run(Misc::getSubDir());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue