mirror of
https://github.com/ditkrg/rswag.git
synced 2026-01-25 15:22:56 +00:00
Support mount-specific swagger_root and add swagger_filter setting
This commit is contained in:
@@ -13,6 +13,10 @@ module SwaggerRails
|
||||
template('swagger_rails.rb', 'config/initializers/swagger_rails.rb')
|
||||
end
|
||||
|
||||
def add_rspec_helper
|
||||
template('swagger_helper.rb', 'spec/swagger_helper.rb')
|
||||
end
|
||||
|
||||
def add_routes
|
||||
route("mount SwaggerRails::Engine => '/api-docs'")
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user