Skip to content

Commit

Permalink
remove deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
tsubik committed Dec 13, 2023
1 parent 07cb8d3 commit 7575a6c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions config/initializers/swagger.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# frozen_string_literal: true

Rswag::Api.configure do |c|
c.swagger_root = Rails.root.to_s + "/doc/api"
c.openapi_root = Rails.root.to_s + "/doc/api"
end

Rswag::Ui.configure do |c|
c.swagger_endpoint "/docs/open_api.json", "API V1 Docs" if Rails.env.development?
c.swagger_endpoint "/api/docs/open_api.json", "API V1 Docs" unless Rails.env.development?
c.openapi_endpoint "/docs/open_api.json", "API V1 Docs" if Rails.env.development?
c.openapi_endpoint "/api/docs/open_api.json", "API V1 Docs" unless Rails.env.development?
end

0 comments on commit 7575a6c

Please sign in to comment.