custom_emojis_controller.rb 362 B

12345678910
  1. # frozen_string_literal: true
  2. class Api::V1::CustomEmojisController < Api::BaseController
  3. vary_by '', unless: :disallow_unauthenticated_api_access?
  4. def index
  5. cache_even_if_authenticated! unless disallow_unauthenticated_api_access?
  6. render_with_cache(each_serializer: REST::CustomEmojiSerializer) { CustomEmoji.listed.includes(:category) }
  7. end
  8. end