1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-03-31 03:25:45 +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,10 @@
class ApiController < ApplicationController
def tournaments
@tournaments = Tournament.all
end
def tournament
@tournament = Tournament.where(:id => params[:tournament]).includes(:schools,:weights,:mats,:matches,:user,:wrestlers).first
end
end