diff --git a/public/api/init.php b/public/api/init.php index a1ba406..1519732 100644 --- a/public/api/init.php +++ b/public/api/init.php @@ -5,7 +5,7 @@ // Reads Environment Configfile -$envFile = __DIR__ . '/../.env'; +$envFile = __DIR__ . '/../../.env'; if (file_exists($envFile)) { $lines = file($envFile, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES); foreach ($lines as $line) { diff --git a/public/index.php b/public/index.php index 09cd2c9..5263364 100644 --- a/public/index.php +++ b/public/index.php @@ -5,7 +5,7 @@ // Renders Leaflet Map Interface including Leaflet Plugins // ===================================================================== -require_once __DIR__ . '/../api/db.php'; +require_once __DIR__ . '/api/db.php'; // ----------------------------------------------------------------- // Loads Municipality Configuration diff --git a/public/js/app.js b/public/js/app.js index d35f9d0..7334dbc 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -14,7 +14,7 @@ // ===================================================================== // API Endpoint as relative Path -var API_URL = '../api/contributions.php'; +var API_URL = 'api/contributions.php'; // Current User Name, set via Login Modal, stored in sessionStorage var currentUser = sessionStorage.getItem('webgis_user') || '';