Skip to content

Commit

Permalink
Base path isn’t needed anymore, because we aren’t modifying the UI’s …
Browse files Browse the repository at this point in the history
…source.
  • Loading branch information
calmdev committed Dec 12, 2013
1 parent c182a47 commit cf31676
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions lib/swagger-express/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,13 +144,8 @@ function generate(opt) {
throw new Error('\'swaggerUI\' is required.');
}

if (!opt.basePath) {
throw new Error('\'basePath\' is required.');
}

descriptor.apiVersion = (opt.apiVersion) ? opt.apiVersion : '1.0';
descriptor.swaggerVersion = (opt.swaggerVersion) ? opt.swaggerVersion : '1.0';
descriptor.basePath = opt.basePath;
descriptor.swaggerURL = (opt.swaggerURL) ? opt.swaggerURL : '/swagger';
descriptor.swaggerJSON = (opt.swaggerJSON) ? opt.swaggerJSON : '/api-docs.json';
descriptor.apis = [];
Expand Down

0 comments on commit cf31676

Please sign in to comment.