1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-02 21:24:25 +00:00

Start of api

This commit is contained in:
2016-02-10 15:16:58 +00:00
parent 731131073f
commit e215717914
8 changed files with 36 additions and 0 deletions

View File

@@ -0,0 +1 @@
json.(@tournament, :id, :name, :address, :director, :director_email, :schools, :weights, :mats, :matches)

View File

@@ -0,0 +1,4 @@
json.array!(@tournaments) do |tournament|
json.extract! tournament, :id, :name, :address, :director, :director_email
json.url tournament_url(tournament, format: :json)
end