mirror of
https://github.com/openSUSE/osem.git
synced 2026-05-03 05:04:45 -04:00
17 lines
399 B
Ruby
17 lines
399 B
Ruby
module Api
|
|
module V1
|
|
class ConferencesController < Api::BaseController
|
|
respond_to :json
|
|
|
|
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
|
|
end
|
|
end
|
|
end
|