Fix the default opts

This commit is contained in:
Raymond Feng 2014-07-31 16:47:47 -07:00
parent 3c8f3b1dd0
commit df459ffc8b
1 changed files with 1 additions and 1 deletions

View File

@ -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',