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