Merge pull request #37 from STRML/swagger-ui-dist
Use `dist` property from swagger-ui package.
This commit is contained in:
commit
e0f81b5436
3
index.js
3
index.js
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue