Skip to content

Commit

Permalink
FIX wrong basePath in the swagger view
Browse files Browse the repository at this point in the history
Behind a reverse proxy the basePath seems to be in http.
Forcing the basePath to DOL_MAIN_URL_ROOT fixes the problem.
  • Loading branch information
Neil Orley committed Sep 8, 2017
1 parent 835cd43 commit 17da808
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/api/class/api.class.php
Expand Up @@ -56,7 +56,7 @@ function __construct($db, $cachedir='', $refreshCache=false)
$this->db = $db;
$production_mode = ( empty($conf->global->API_PRODUCTION_MODE) ? false : true );
$this->r = new Restler($production_mode, $refreshCache);

$this->r->setBaseUrls(DOL_MAIN_URL_ROOT);
$this->r->setAPIVersion(1);
}

Expand Down

0 comments on commit 17da808

Please sign in to comment.