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
This commit is contained in:
10
app/controllers/api/v1/promotions_controller.rb
Normal file
10
app/controllers/api/v1/promotions_controller.rb
Normal file
@@ -0,0 +1,10 @@
|
||||
# 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
|
||||
Reference in New Issue
Block a user