mirror of
https://github.com/zammad/zammad
synced 2026-05-24 09:48:36 +00:00
33 lines
642 B
Ruby
33 lines
642 B
Ruby
# Copyright (C) 2012-2026 Zammad Foundation, https://zammad-foundation.org/
|
|
|
|
class AIAgentsController < ApplicationController
|
|
prepend_before_action :authenticate_and_authorize!
|
|
|
|
def index
|
|
model_index_render(AI::Agent, params)
|
|
end
|
|
|
|
def show
|
|
model_show_render(AI::Agent, params)
|
|
end
|
|
|
|
def create
|
|
model_create_render(AI::Agent, params)
|
|
end
|
|
|
|
def update
|
|
model_update_render(AI::Agent, params)
|
|
end
|
|
|
|
def search
|
|
model_search_render(AI::Agent, params)
|
|
end
|
|
|
|
def destroy
|
|
model_destroy_render(AI::Agent, params)
|
|
end
|
|
|
|
def types
|
|
render json: AI::Agent::Type.available_type_data, status: :ok
|
|
end
|
|
end
|