From 0060b188427851efcf2f09c2685c9c7b46755860 Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Sun, 4 Jun 2017 17:27:01 +0200 Subject: [PATCH] API base url setting --- app/bootstrap.php.d/60-api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/bootstrap.php.d/60-api.php b/app/bootstrap.php.d/60-api.php index c66683b..4892f39 100644 --- a/app/bootstrap.php.d/60-api.php +++ b/app/bootstrap.php.d/60-api.php @@ -3,5 +3,5 @@ use Gist\Api\Client; $app['api_client'] = $app->share(function ($app) { - return new Client(['base_uri' => $app['settings']['api']['base_uri']]); + return new Client(['base_uri' => rtrim($app['settings']['api']['base_url'], '/')]); });