zammad/app/controllers/ai_text_tools_controller.rb
Florian Liebe f2d4a06657 Fixes #5762 - AI Analytics> Writing Assistant> Possibilities to investigate satisfaction with a writing assistant result.
Co-authored-by: Florian Liebe <fl@zammad.com>
Co-authored-by: Mantas Masalskis <mm@zammad.com>
Co-authored-by: Rene Reimann <rr@zammad.com>
2026-03-30 21:04:43 +02:00

37 lines
719 B
Ruby

# Copyright (C) 2012-2026 Zammad Foundation, https://zammad-foundation.org/
class AITextToolsController < ApplicationController
prepend_before_action :authenticate_and_authorize!
def index
model_index_render(AI::TextTool, params)
end
def show
model_show_render(AI::TextTool, params)
end
def create
model_create_render(AI::TextTool, params)
end
def update
model_update_render(AI::TextTool, params)
end
def search
model_search_render(AI::TextTool, params)
end
def destroy
model_destroy_render(AI::TextTool, params)
end
def reset_analytics
AI::TextTool
.find(params[:id])
.reset_analytics_timestamp!
render json: { success: true }
end
end