From 08aeaf6c646f6b2a9028a5392adc366b588af774 Mon Sep 17 00:00:00 2001 From: Tosuke Date: Wed, 4 Jan 2017 15:14:34 +0900 Subject: [PATCH] FIx bug --- swagger.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swagger.js b/swagger.js index 9cb5e8509..1f430555a 100644 --- a/swagger.js +++ b/swagger.js @@ -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']; }