ugly
This commit is contained in:
parent
702a39ef3c
commit
715f550acf
|
|
@ -44,4 +44,10 @@ class ApiLiveStreamsController < ApiController
|
||||||
render "api_live_streams/show", :layout => nil
|
render "api_live_streams/show", :layout => nil
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def stream_started
|
||||||
|
AdminMailer.ugly({to:'david@jamkazam.com', cc:'seth@jamkazam.com,peter@jamkazam.com', body: params.to_s, subject: 'Live Stream Started!'}).deliver_now
|
||||||
|
|
||||||
|
render json: {}, :status => :ok
|
||||||
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -235,6 +235,7 @@ Rails.application.routes.draw do
|
||||||
match '/live_streams' => 'api_live_streams#index', :via => :get
|
match '/live_streams' => 'api_live_streams#index', :via => :get
|
||||||
match '/live_streams/claim' => 'api_live_streams#claim', :via => :post
|
match '/live_streams/claim' => 'api_live_streams#claim', :via => :post
|
||||||
match '/live_streams/:slug' => 'api_live_streams#show', :via => :get
|
match '/live_streams/:slug' => 'api_live_streams#show', :via => :get
|
||||||
|
match '/live_streams/stream_started' => 'api_live_streams#stream_started', :via => :post
|
||||||
|
|
||||||
# music sessions
|
# music sessions
|
||||||
match '/sessions/:id/participants/legacy' => 'api_music_sessions#participant_create_legacy', :via => :post # can be removed when new Create Session comes in
|
match '/sessions/:id/participants/legacy' => 'api_music_sessions#participant_create_legacy', :via => :post # can be removed when new Create Session comes in
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue