summaryrefslogtreecommitdiff
path: root/app/views/matches/index.json.jbuilder
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/matches/index.json.jbuilder')
-rw-r--r--app/views/matches/index.json.jbuilder4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/views/matches/index.json.jbuilder b/app/views/matches/index.json.jbuilder
new file mode 100644
index 0000000..08ae0ef
--- /dev/null
+++ b/app/views/matches/index.json.jbuilder
@@ -0,0 +1,4 @@
+json.array!(@matches) do |match|
+ json.extract! match, :id, :tournament_id, :name
+ json.url match_url(match, format: :json)
+end