Updated domain name
This commit is contained in:
parent
f0f3211ef0
commit
0b54e349d1
1 changed files with 3 additions and 7 deletions
10
app/app.php
10
app/app.php
|
@ -435,12 +435,8 @@ $utopia->get('/v1/proxy')
|
||||||
$utopia->get('/v1/open-api-2.json')
|
$utopia->get('/v1/open-api-2.json')
|
||||||
->label('scope', 'public')
|
->label('scope', 'public')
|
||||||
->label('docs', false)
|
->label('docs', false)
|
||||||
->param('platform', 'client', function () {
|
->param('platform', 'client', function () {return new WhiteList(['client', 'server']);}, 'Choose target platform.', true)
|
||||||
return new WhiteList(['client', 'server']);
|
->param('extensions', 0, function () {return new Range(0, 1);}, 'Show extra data.', true)
|
||||||
}, 'Choose target platform.', true)
|
|
||||||
->param('extensions', 0, function () {
|
|
||||||
return new Range(0, 1);
|
|
||||||
}, 'Show extra data.', true)
|
|
||||||
->action(
|
->action(
|
||||||
function ($platform, $extensions) use ($response, $request, $utopia, $domain, $version, $services) {
|
function ($platform, $extensions) use ($response, $request, $utopia, $domain, $version, $services) {
|
||||||
function fromCamelCase($input)
|
function fromCamelCase($input)
|
||||||
|
@ -494,7 +490,7 @@ $utopia->get('/v1/open-api-2.json')
|
||||||
'url' => 'https://raw.githubusercontent.com/appwrite/appwrite/master/LICENSE',
|
'url' => 'https://raw.githubusercontent.com/appwrite/appwrite/master/LICENSE',
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
'host' => $domain,
|
'host' => $request->getServer('_APP_HOME', $domain),
|
||||||
'basePath' => '/v1',
|
'basePath' => '/v1',
|
||||||
'schemes' => ['https'],
|
'schemes' => ['https'],
|
||||||
'consumes' => ['application/json', 'multipart/form-data'],
|
'consumes' => ['application/json', 'multipart/form-data'],
|
||||||
|
|
Loading…
Reference in a new issue