2019-07-02 03:10:25 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2020-11-09 12:08:31 -06:00
|
|
|
class Api::V1::CustomEmojisController < EmptyController
|
2020-11-15 12:48:32 -06:00
|
|
|
|
2019-07-02 03:10:25 -04:00
|
|
|
def index
|
2020-11-15 12:48:32 -06:00
|
|
|
data = ActiveModelSerializers::SerializableResource.new(CustomEmoji.local, each_serializer: REST::CustomEmojiSerializer)
|
2020-11-09 12:08:31 -06:00
|
|
|
render json: data.to_json, content_type: 'application/json'
|
2019-07-02 03:10:25 -04:00
|
|
|
end
|
2020-11-15 12:48:32 -06:00
|
|
|
|
2019-07-02 03:10:25 -04:00
|
|
|
end
|