@@ -435,12 +435,8 @@ function () use ($response, $console, $clients) {
435
435
$ utopia ->get ('/v1/open-api-2.json ' )
436
436
->label ('scope ' , 'public ' )
437
437
->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 )
444
440
->action (
445
441
function ($ platform , $ extensions ) use ($ response , $ request , $ utopia , $ domain , $ version , $ services ) {
446
442
function fromCamelCase ($ input )
@@ -494,7 +490,7 @@ function fromCamelCaseToDash($input)
494
490
'url ' => 'https://raw.githubusercontent.com/appwrite/appwrite/master/LICENSE ' ,
495
491
],
496
492
],
497
- 'host ' => $ domain ,
493
+ 'host ' => $ request -> getServer ( ' _APP_HOME ' , $ domain) ,
498
494
'basePath ' => '/v1 ' ,
499
495
'schemes ' => ['https ' ],
500
496
'consumes ' => ['application/json ' , 'multipart/form-data ' ],
0 commit comments