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
|
2014-07-21 14:49:05 +02:00
|
|
|
render json: conferences, serializer: ConferencesArraySerializer
|
2013-07-04 14:02:50 +02:00
|
|
|
end
|
|
|
|
|
end
|