17 lines
335 B
Ruby
17 lines
335 B
Ruby
class VideoRoomsController < ApplicationController
|
|
before_action :skip_authorization
|
|
|
|
def new
|
|
end
|
|
|
|
def create
|
|
redirect_to room_path(SecureRandom.uuid)
|
|
end
|
|
|
|
def show
|
|
@client = Client.new(id: SecureRandom.uuid)
|
|
cookies.encrypted[:client_id] = @client.id
|
|
@video_room = VideoRoom.new(id: params[:id])
|
|
end
|
|
end
|