Fix the default opts
This commit is contained in:
parent
3c8f3b1dd0
commit
df459ffc8b
|
@ -24,7 +24,7 @@ var routeHelper = require('./route-helper');
|
|||
* @param {Object} opts Options.
|
||||
*/
|
||||
function Swagger(loopbackApplication, swaggerApp, opts) {
|
||||
_defaults(opts || {}, {
|
||||
opts = _defaults(opts || {}, {
|
||||
swaggerVersion: '1.2',
|
||||
basePath: loopbackApplication.get('restApiRoot') || '/api',
|
||||
resourcePath: 'resources',
|
||||
|
|
Loading…
Reference in New Issue