Serve Swagger docs via middleware

This commit is contained in:
domaindrivendev
2016-02-03 23:41:31 -08:00
parent 58691903fb
commit df4b9c80c9
12 changed files with 54 additions and 89 deletions

View File

@@ -1,4 +1,3 @@
SwaggerRails::Engine.routes.draw do
get '/index.html', to: 'swagger_ui#index', as: :swagger_ui
get '/:api_version/swagger.json', to: 'swagger_docs#show', as: :swagger
end