13 lines
275 B
Ruby
13 lines
275 B
Ruby
class CallsController < ApplicationController
|
|
before_action :skip_authorization
|
|
def create
|
|
head :no_content
|
|
ActionCable.server.broadcast("call_channel", call_params)
|
|
end
|
|
private
|
|
|
|
def call_params
|
|
params.permit(:call, :type, :from, :to, :sdp)
|
|
end
|
|
end
|