mirror of
https://github.com/openSUSE/osem.git
synced 2026-04-29 03:06:47 -04:00
13 lines
337 B
Ruby
13 lines
337 B
Ruby
class Api::V1::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
|