Support mount-specific swagger_root and add swagger_filter setting

This commit is contained in:
richie
2016-06-29 16:11:40 -07:00
parent 60f33a5386
commit 7a01babe01
30 changed files with 367 additions and 144 deletions

View File

@@ -1,4 +1,4 @@
SwaggerRails::Engine.routes.draw do
root to: 'application#redirect_to_swagger_ui'
get '/index.html', to: 'swagger_ui#index', as: :swagger_ui
root to: 'swagger_ui#root'
get '/index.html', to: 'swagger_ui#index'
end