mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-12-23 12:53:08 +02:00
FIx bug
This commit is contained in:
parent
4dd5a443e5
commit
08aeaf6c64
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ options.apis = files.map(c => {return `${apiRoot}/${c}`;});
|
|||
|
||||
if(fs.existsSync('.config/config.yml')){
|
||||
var config = yaml.safeLoad(fs.readFileSync('./.config/config.yml', 'utf8'));
|
||||
options.swaggerDefinition.host = config.url;
|
||||
options.swaggerDefinition.host = `api.${config.url}`;
|
||||
options.swaggerDefinition.schemes = config.https.enable ? ['https'] : ['http'];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue