Browse Source

modify swagger-definition.js setting

Ryu Sato 6 years ago
parent
commit
3cc4b80c26
1 changed files with 2 additions and 2 deletions
  1. 2 2
      config/swagger-definition.js

+ 2 - 2
config/swagger-definition.js

@@ -1,7 +1,7 @@
 const pkg = require('../package.json');
 
-const apiVersion = process.env.API_VERSION || 3;
-const basePath = (apiVersion === 1 ? '/_api' : `/_api/v${apiVersion}`);
+const apiVersion = process.env.API_VERSION || '3';
+const basePath = (apiVersion === '1' ? '/_api' : `/_api/v${apiVersion}`);
 
 module.exports = {
   openapi: '3.0.1',