mirror of
https://github.com/ditkrg/rswag.git
synced 2026-01-25 07:16:40 +00:00
Vendor latest swagger-ui
This commit is contained in:
@@ -8,7 +8,7 @@ module SwaggerRails
|
||||
private
|
||||
|
||||
def swagger_file_path_for(api_version)
|
||||
File.join(Rails.root, 'config', 'swagger', "#{api_version}.json")
|
||||
File.join(Rails.root, 'config', 'swagger', api_version, 'swagger.json')
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -2,7 +2,8 @@ module SwaggerRails
|
||||
class SwaggerUiController < ApplicationController
|
||||
|
||||
def show
|
||||
@discovery_url = request.path.gsub('/ui', '/docs/v1')
|
||||
@discovery_path = swagger_path('v1')
|
||||
render :index
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user