Merge pull request #37 from STRML/swagger-ui-dist

Use `dist` property from swagger-ui package.
This commit is contained in:
Raymond Feng 2014-08-15 23:36:05 -07:00
commit e0f81b5436
1 changed files with 1 additions and 2 deletions

View File

@ -8,8 +8,7 @@ var urlJoin = require('./lib/url-join');
var _defaults = require('lodash.defaults');
var express = require('express');
var swagger = require('./lib/swagger');
var SWAGGER_UI_ROOT = path.join(__dirname, 'node_modules',
'swagger-ui', 'dist');
var SWAGGER_UI_ROOT = require('swagger-ui').dist;
var STATIC_ROOT = path.join(__dirname, 'public');
module.exports = explorer;