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>
This commit is contained in:
12
backend/app/controllers/admin/teams_controller.rb
Normal file
12
backend/app/controllers/admin/teams_controller.rb
Normal file
@@ -0,0 +1,12 @@
|
||||
module Admin
|
||||
class TeamsController < Admin::BaseController
|
||||
def index
|
||||
@teams = Team.all.order(:name)
|
||||
end
|
||||
|
||||
def show
|
||||
@team = Team.find(params[:id])
|
||||
@matches = @team.matches.order(scheduled_at: :desc)
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user