Sha256: f47c7a653954b202c20013c8c8afb940313d8103ee63a565c0b9866e06b501e5

Contents?: true

Size: 441 Bytes

Versions: 57

Compression:

Stored size: 441 Bytes

Contents

class WebhooksController < Auth::WebhooksController
	def sms_webhook 
		## send to a background job in the respective module.
		OtpJob.perform_later([nil,nil,"sms_webhook",JSON.generate(params)])
		render :nothing => true, :status => 200
	end

	def email_webhook
		## send to a background job in the respective module.
		OtpJob.perform_later([nil,nil,"email_webhook",JSON.generate(params)])
		render :nothing => true, :status => 200
	end
end

Version data entries

57 entries across 57 versions & 1 rubygems

Version Path
wordjelly-auth-1.6.0 spec/dummy/app/controllers/webhooks_controller.rb
wordjelly-auth-1.5.9 spec/dummy/app/controllers/webhooks_controller.rb
wordjelly-auth-1.5.8 spec/dummy/app/controllers/webhooks_controller.rb
wordjelly-auth-1.5.7 spec/dummy/app/controllers/webhooks_controller.rb
wordjelly-auth-1.5.6 spec/dummy/app/controllers/webhooks_controller.rb
wordjelly-auth-1.5.5 spec/dummy/app/controllers/webhooks_controller.rb
wordjelly-auth-1.5.4 spec/dummy/app/controllers/webhooks_controller.rb
wordjelly-auth-1.5.3 spec/dummy/app/controllers/webhooks_controller.rb
wordjelly-auth-1.5.2 spec/dummy/app/controllers/webhooks_controller.rb
wordjelly-auth-1.5.1 spec/dummy/app/controllers/webhooks_controller.rb
wordjelly-auth-1.5.0 spec/dummy/app/controllers/webhooks_controller.rb
wordjelly-auth-1.4.9 spec/dummy/app/controllers/webhooks_controller.rb
wordjelly-auth-1.4.8 spec/dummy/app/controllers/webhooks_controller.rb
wordjelly-auth-1.4.7 spec/dummy/app/controllers/webhooks_controller.rb
wordjelly-auth-1.4.6 spec/dummy/app/controllers/webhooks_controller.rb
wordjelly-auth-1.4.5 spec/dummy/app/controllers/webhooks_controller.rb
wordjelly-auth-1.4.4 spec/dummy/app/controllers/webhooks_controller.rb
wordjelly-auth-1.4.3 spec/dummy/app/controllers/webhooks_controller.rb
wordjelly-auth-1.4.2 spec/dummy/app/controllers/webhooks_controller.rb
wordjelly-auth-1.4.0 spec/dummy/app/controllers/webhooks_controller.rb