Class: OpenapiRuby::UiController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- OpenapiRuby::UiController
- Defined in:
- app/controllers/openapi_ruby/ui_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
7 8 9 10 11 12 13 |
# File 'app/controllers/openapi_ruby/ui_controller.rb', line 7 def index html = Serving.swagger_ui_html( schema_urls: schema_urls, ui_config: OpenapiRuby.configuration.ui_config ) render html: html.html_safe end |
#oauth2_redirect ⇒ Object
15 16 17 |
# File 'app/controllers/openapi_ruby/ui_controller.rb', line 15 def oauth2_redirect render file: Serving.oauth2_redirect_file, layout: false, content_type: "text/html" end |