Skip to content

Commit

Permalink
implement API v4
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnRDOrazio committed Jan 3, 2025
1 parent a18d7e4 commit 462b8e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions php/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

$isStaging = ( strpos($_SERVER['HTTP_HOST'], "-staging") !== false || strpos($_SERVER['HTTP_HOST'], "localhost") !== false );
$stagingURL = $isStaging ? "-staging" : "";
$endpointV = $isStaging ? "dev" : "v3";
$endpointV = $isStaging ? "dev" : "v4";
if (isset($_ENV['APP_ENV']) && $_ENV['APP_ENV'] === 'development') {
if (false === isset($_ENV['API_PROTOCOL']) || false === isset($_ENV['API_HOST']) || false === isset($_ENV['API_PORT'])) {
die("API_PROTOCOL, API_HOST and API_PORT must be defined in .env.development or similar dotenv when APP_ENV is development");
Expand All @@ -56,7 +56,7 @@

$baseLocale = Locale::getPrimaryLanguage($envLocale);
$options = [
'url' => METADATA_URL
'url' => rtrim(METADATA_URL, '/calendars')
];
$calendarSelectNations = new CalendarSelect($options);
$calendarSelectNations->label(true)->labelText('nation')->labelClass('d-block mb-1')
Expand Down

0 comments on commit 462b8e6

Please sign in to comment.