Class: Docit::UiController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- Docit::UiController
- Defined in:
- app/controllers/docit/ui_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
5 6 7 |
# File 'app/controllers/docit/ui_controller.rb', line 5 def index render html: swagger_ui_html.html_safe, layout: false end |
#spec ⇒ Object
9 10 11 12 |
# File 'app/controllers/docit/ui_controller.rb', line 9 def spec RouteInspector.eager_load_controllers! render json: SchemaGenerator.generate end |