Class: CompletionKit::Api::V1::ResponsesController
- Inherits:
-
BaseController
- Object
- ActionController::API
- BaseController
- CompletionKit::Api::V1::ResponsesController
- Defined in:
- app/controllers/completion_kit/api/v1/responses_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
8 9 10 |
# File 'app/controllers/completion_kit/api/v1/responses_controller.rb', line 8 def index render json: @run.responses.includes(:reviews) end |
#show ⇒ Object
12 13 14 |
# File 'app/controllers/completion_kit/api/v1/responses_controller.rb', line 12 def show render json: @response end |