Rails API, app Flutter, infrastruttura Docker/MediaMTX, sito marketing e documentazione di deploy. Co-authored-by: Cursor <cursoragent@cursor.com>
16 lines
406 B
Ruby
16 lines
406 B
Ruby
module Public
|
|
class ReplayController < SiteBaseController
|
|
layout "marketing_live"
|
|
|
|
def show
|
|
@session = StreamSession.includes(match: :team).find(params[:id])
|
|
@recording = Recording.ready.find_by(stream_session: @session)
|
|
@match = @session.match
|
|
|
|
unless @recording
|
|
redirect_to public_live_path(@session), alert: "Replay non disponibile"
|
|
end
|
|
end
|
|
end
|
|
end
|