discourse/plugins/chat/app/controllers/emojis_controller.rb

9 lines
190 B
Ruby

# frozen_string_literal: true
class Chat::EmojisController < Chat::ChatBaseController
def index
emojis = Emoji.all.group_by(&:group)
render json: MultiJson.dump(emojis)
end
end