mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-02 21:24:25 +00:00
Start of api
This commit is contained in:
1
app/views/api/tournament.jbuilder
Normal file
1
app/views/api/tournament.jbuilder
Normal file
@@ -0,0 +1 @@
|
||||
json.(@tournament, :id, :name, :address, :director, :director_email, :schools, :weights, :mats, :matches)
|
||||
4
app/views/api/tournaments.jbuilder
Normal file
4
app/views/api/tournaments.jbuilder
Normal 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
|
||||
Reference in New Issue
Block a user