Files
MatchLiveTv/backend/app/controllers/admin/sessions_controller.rb
Emiliano Frascaro bba6df52c0 Initial commit: monorepo Match Live TV.
Rails API, app Flutter, infrastruttura Docker/MediaMTX, sito marketing e documentazione di deploy.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-26 17:45:37 +02:00

13 lines
314 B
Ruby

module Admin
class SessionsController < Admin::BaseController
def index
@sessions = StreamSession.includes(:match, :user).order(created_at: :desc).limit(50)
end
def show
@session = StreamSession.find(params[:id])
@events = @session.stream_events.recent.limit(50)
end
end
end