gab-social/app/controllers/api/v1/custom_emojis_controller.rb

11 lines
300 B
Ruby
Raw Normal View History

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