gab-social/app/controllers/api/v1/promotions_controller.rb
mgabdev 21937d9e09 Added promotions to redux and added selector for setting promotions if not PRO
• Added:
- promotions to redux
- selector for setting promotions if not PRO

• Updated:
- StatusList, SidebarPanelGroup to use promotions from redux
2020-11-09 13:28:43 -06:00

11 lines
295 B
Ruby

# frozen_string_literal: true
class Api::V1::PromotionsController < EmptyController
def index
data = ActiveModelSerializers::SerializableResource.new(Promotion.active, each_serializer: REST::PromotionSerializer)
render json: data.to_json, content_type: 'application/json'
end
end