Skip to content

Commit 0b54e34

Browse files
committed
Updated domain name
1 parent f0f3211 commit 0b54e34

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

app/app.php

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -435,12 +435,8 @@ function () use ($response, $console, $clients) {
435435
$utopia->get('/v1/open-api-2.json')
436436
->label('scope', 'public')
437437
->label('docs', false)
438-
->param('platform', 'client', function () {
439-
return new WhiteList(['client', 'server']);
440-
}, 'Choose target platform.', true)
441-
->param('extensions', 0, function () {
442-
return new Range(0, 1);
443-
}, 'Show extra data.', true)
438+
->param('platform', 'client', function () {return new WhiteList(['client', 'server']);}, 'Choose target platform.', true)
439+
->param('extensions', 0, function () {return new Range(0, 1);}, 'Show extra data.', true)
444440
->action(
445441
function ($platform, $extensions) use ($response, $request, $utopia, $domain, $version, $services) {
446442
function fromCamelCase($input)
@@ -494,7 +490,7 @@ function fromCamelCaseToDash($input)
494490
'url' => 'https://raw.githubusercontent.com/appwrite/appwrite/master/LICENSE',
495491
],
496492
],
497-
'host' => $domain,
493+
'host' => $request->getServer('_APP_HOME', $domain),
498494
'basePath' => '/v1',
499495
'schemes' => ['https'],
500496
'consumes' => ['application/json', 'multipart/form-data'],

0 commit comments

Comments
 (0)