clarion/app/controllers/schedules_controller.rb

11 lines
372 B
Ruby
Raw Normal View History

2014-10-31 12:54:11 +02:00
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