2013-07-04 14:02:50 +02:00
|
|
|
class Api::V1::ConferencesController < Api::BaseController
|
|
|
|
|
respond_to :json
|
|
|
|
|
|
|
|
|
|
def index
|
2013-07-16 17:04:48 +02:00
|
|
|
if params[:conference_id].blank?
|
|
|
|
|
conferences = Conference.all
|
|
|
|
|
else
|
|
|
|
|
conferences = Conference.find_all_by_guid(params[:conference_id])
|
|
|
|
|
end
|
|
|
|
|
render :json => conferences, :serializer => ConferencesArraySerializer
|
2013-07-04 14:02:50 +02:00
|
|
|
end
|
|
|
|
|
end
|