mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-03-25 01:14:43 +00:00
16 lines
365 B
Ruby
16 lines
365 B
Ruby
class ApiController < ApplicationController
|
|
protect_from_forgery with: :null_session
|
|
|
|
def index
|
|
|
|
end
|
|
|
|
def tournaments
|
|
@tournaments = Tournament.all
|
|
end
|
|
|
|
def tournament
|
|
@tournament = Tournament.where(:id => params[:tournament]).includes(:schools,:weights,:mats,:matches,:user,:wrestlers).first
|
|
end
|
|
end
|