From df459ffc8bbdc5ea0423b50131184434bfce9bad Mon Sep 17 00:00:00 2001 From: Raymond Feng Date: Thu, 31 Jul 2014 16:47:47 -0700 Subject: [PATCH] Fix the default opts --- lib/swagger.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/swagger.js b/lib/swagger.js index 5d76098..da4102c 100644 --- a/lib/swagger.js +++ b/lib/swagger.js @@ -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',