diff --git a/README.md b/README.md index 7a1f7e0..e8cff46 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,7 @@ module.exports.swagger = { * require() the package.json file for your Sails app. */ pkg: require('../package'), + basePath: '/api/v1', ui: { url: 'http://swagger.balderdash.io' } diff --git a/lib/xfmr.js b/lib/xfmr.js index f11632f..f800772 100644 --- a/lib/xfmr.js +++ b/lib/xfmr.js @@ -44,6 +44,7 @@ const Transformer = { swagger: '2.0', info: Transformer.getInfo(pkg), host: sails.config.swagger.host, + basePath: sails.config.swagger.basePath, tags: Transformer.getTags(sails), definitions: Transformer.getDefinitions(sails), paths: Transformer.getPaths(sails)