Auto patch API

This commit is contained in:
Pablo Ferreiro 2022-01-04 00:18:13 +01:00
parent c700036aa2
commit c8d6516dd7
No known key found for this signature in database
GPG key ID: 41FBCE65B779FA24
8 changed files with 23 additions and 9 deletions

View file

@ -3,10 +3,8 @@ require __DIR__ . "/vendor/autoload.php";
use Steampixel\Route;
// LOAD DOTENV
if (file_exists(__DIR__ . '/.env')) {
$dotenv = Dotenv\Dotenv::createImmutable(__DIR__);
$dotenv->load();
}
$dotenv = Dotenv\Dotenv::createImmutable(__DIR__);
$dotenv->safeLoad();
// -- HELPERS -- //
function getSubdir(): string {