GRN2-269: Pulling room settings using GET instead of data-attributes (#953)

* GRN2-269: Pulling room settings using GET instead of data-attributes

* GRN2-269: added test case and fixed documentation

* GRN2:269: rubocop fix

* GRN2-269: Fixed test case
This commit is contained in:
etiennevvv
2020-02-21 09:20:22 -05:00
committed by GitHub
parent c75c624a1a
commit 92da1f6f87
5 changed files with 36 additions and 9 deletions

View File

@ -248,6 +248,14 @@ class RoomsController < ApplicationController
end
end
# GET /:room_uid/room_settings
def room_settings
# Respond with JSON object of the room_settings
respond_to do |format|
format.json { render body: @room.room_settings.to_json }
end
end
# GET /:room_uid/logout
def logout
logger.info "Support: #{current_user.present? ? current_user.email : 'Guest'} has left room #{@room.uid}"