clarion/app/controllers/schedules_controller.rb
2014-11-01 04:04:51 +02:00

11 lines
372 B
Ruby

class SchedulesController < ApplicationController
def show
@schedule = Schedule.for_conference Conference.current
headers['Access-Control-Allow-Origin'] = '*'
headers['Access-Control-Allow-Methods'] = 'POST, GET, OPTIONS'
headers['Access-Control-Max-Age'] = "1728000"
respond_to { |format| format.json { render json: @schedule.to_json } }
end
end