2019-07-02 08:10:25 +01:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2020-11-09 18:08:31 +00:00
|
|
|
class Api::V1::CustomEmojisController < EmptyController
|
2019-07-02 08:10:25 +01:00
|
|
|
def index
|
2020-11-09 18:08:31 +00:00
|
|
|
data = ActiveModelSerializers::SerializableResource.new(CustomEmoji.local.where(disabled: false), each_serializer: REST::CustomEmojiSerializer)
|
|
|
|
render json: data.to_json, content_type: 'application/json'
|
2019-07-02 08:10:25 +01:00
|
|
|
end
|
|
|
|
end
|