1
0
Fork 0
mirror of synced 2024-06-28 19:20:25 +12:00

Updated domain name

This commit is contained in:
eldadfux 2019-10-04 00:59:35 +03:00
parent f0f3211ef0
commit 0b54e349d1

View file

@ -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'],