diff options
Diffstat (limited to 'app/views/games/index.json.jbuilder')
-rw-r--r-- | app/views/games/index.json.jbuilder | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/views/games/index.json.jbuilder b/app/views/games/index.json.jbuilder new file mode 100644 index 0000000..7e5c1a1 --- /dev/null +++ b/app/views/games/index.json.jbuilder @@ -0,0 +1,4 @@ +json.array!(@games) do |game| + json.extract! game, :id, :name, :players_per_team, :teams_per_match, :set_rounds, :randomized_teams + json.url game_url(game, format: :json) +end |