gab-social/app/controllers/api/v1/custom_emojis_controller.rb
mgabdev 297fac5d21 Updated some controllers to inherit from EmptyController
• Updated:
- some controllers to inherit from EmptyController
2020-11-09 12:08:31 -06:00

9 lines
321 B
Ruby

# frozen_string_literal: true
class Api::V1::CustomEmojisController < EmptyController
def index
data = ActiveModelSerializers::SerializableResource.new(CustomEmoji.local.where(disabled: false), each_serializer: REST::CustomEmojiSerializer)
render json: data.to_json, content_type: 'application/json'
end
end