This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/plugins/chat/app/controllers/api/chat_threads_controller.rb

19 lines
469 B
Ruby

# frozen_string_literal: true
class Chat::Api::ChatThreadsController < Chat::Api
def show
render json:
success_json.merge(
{
thread: {
id: params[:thread_id],
original_message_user: {
username: "test",
},
original_message_excerpt: "this is a cool message",
},
},
)
end
end