Class: CompletionKit::ApiReferenceController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- CompletionKit::ApiReferenceController
- Defined in:
- app/controllers/completion_kit/api_reference_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
3 4 5 6 7 |
# File 'app/controllers/completion_kit/api_reference_controller.rb', line 3 def index @published_prompts = Prompt.current_versions.order(name: :asc) @token = CompletionKit.config.api_token @base_url = request.base_url + request.script_name end |