Merge pull request #3389 from shockey/include-apis-preset-by-default

Add Api preset in constructor by default
This commit is contained in:
shockey
2017-07-15 09:31:51 -07:00
committed by GitHub

View File

@@ -67,6 +67,7 @@ module.exports = function SwaggerUI(opts) {
// Initial set of plugins ( TODO rename this, or refactor - we don't need presets _and_ plugins. Its just there for performance. // Initial set of plugins ( TODO rename this, or refactor - we don't need presets _and_ plugins. Its just there for performance.
// Instead, we can compile the first plugin ( it can be a collection of plugins ), then batch the rest. // Instead, we can compile the first plugin ( it can be a collection of plugins ), then batch the rest.
presets: [ presets: [
ApisPreset
], ],
// Plugins; ( loaded after presets ) // Plugins; ( loaded after presets )