mirror of
https://github.com/openSUSE/osem.git
synced 2026-04-28 02:41:25 -04:00
14 lines
293 B
Ruby
14 lines
293 B
Ruby
class Api::V1::RoomsController < Api::BaseController
|
|
respond_to :json
|
|
|
|
def index
|
|
if params[:conference_id].blank?
|
|
rooms = Room.all
|
|
else
|
|
conference = Conference.find_by_guid(params[:conference_id])
|
|
rooms = conference.rooms
|
|
end
|
|
respond_with rooms
|
|
end
|
|
end
|