Add Api preset in constructor by default

This commit is contained in:
Kyle Shockey
2017-07-14 15:33:49 -07:00
parent 08e84a0048
commit 0dccd48474

View File

@@ -65,6 +65,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.
// Instead, we can compile the first plugin ( it can be a collection of plugins ), then batch the rest.
presets: [
ApisPreset
],
// Plugins; ( loaded after presets )