15 lines
337 B
Ruby
15 lines
337 B
Ruby
# frozen_string_literal: true
|
|
|
|
class MatchesController < ApplicationController
|
|
# GET /matches/1
|
|
def show
|
|
render json: Match.find(params[:id]), include: ['scores.score', 'scores.team'], status: status
|
|
end
|
|
|
|
private
|
|
|
|
def match_params
|
|
ActiveModelSerializers::Deserialization.jsonapi_parse(params, only: [:state])
|
|
end
|
|
end
|