mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-22 00:43:49 +01:00
FIx bug
This commit is contained in:
parent
b20aeb76da
commit
1bbf4c1ece
@ -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 New Issue
Block a user