This commit is contained in:
Daniel Schädler 2025-03-13 12:35:27 +01:00
parent 5ab18063dd
commit fafc4d3937
1 changed files with 2 additions and 4 deletions

View File

@ -36,14 +36,12 @@ class MatchesController < ApplicationController
m.state == match_params['state'] m.state == match_params['state']
end end
end end
render json: matches, each_serializer: ExtendedMatchSerializer, include: [ render json: matches, each_serializer: ExtendedMatchSerializer, include: %w[match_scores.team bets stage group]
'match_scores.team', 'bets', 'stage', 'group'
]
end end
# GET /matches/1 # GET /matches/1
def show def show
render json: @match, include: ['match_scores.points', 'match_scores.team', 'bets'] render json: @match, include: %w[match_scores.points match_scores.team bets]
end end
# PATCH/PUT /matches/1 # PATCH/PUT /matches/1