From 0b54e349d147aea977b62dbc9aa8bb1fc08678e4 Mon Sep 17 00:00:00 2001 From: eldadfux Date: Fri, 4 Oct 2019 00:59:35 +0300 Subject: [PATCH] Updated domain name --- app/app.php | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/app/app.php b/app/app.php index 4e4af3987..6301d0872 100644 --- a/app/app.php +++ b/app/app.php @@ -435,12 +435,8 @@ $utopia->get('/v1/proxy') $utopia->get('/v1/open-api-2.json') ->label('scope', 'public') ->label('docs', false) - ->param('platform', 'client', function () { - return new WhiteList(['client', 'server']); - }, 'Choose target platform.', true) - ->param('extensions', 0, function () { - return new Range(0, 1); - }, 'Show extra data.', true) + ->param('platform', 'client', function () {return new WhiteList(['client', 'server']);}, 'Choose target platform.', true) + ->param('extensions', 0, function () {return new Range(0, 1);}, 'Show extra data.', true) ->action( function ($platform, $extensions) use ($response, $request, $utopia, $domain, $version, $services) { function fromCamelCase($input) @@ -494,7 +490,7 @@ $utopia->get('/v1/open-api-2.json') 'url' => 'https://raw.githubusercontent.com/appwrite/appwrite/master/LICENSE', ], ], - 'host' => $domain, + 'host' => $request->getServer('_APP_HOME', $domain), 'basePath' => '/v1', 'schemes' => ['https'], 'consumes' => ['application/json', 'multipart/form-data'],