mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Adding api/v1/conferences/x/conferences
* A little weird, but needed by suseconferenceclient
This commit is contained in:
parent
2553bd4e03
commit
740a604c01
2 changed files with 7 additions and 1 deletions
|
|
@ -2,6 +2,11 @@ class Api::V1::ConferencesController < Api::BaseController
|
|||
respond_to :json
|
||||
|
||||
def index
|
||||
render :json => Conference.all, :serializer => ConferencesArraySerializer
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue