mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-02 12:08:01 +00:00
Feature: Webhooks (#489)
This commit is contained in:
7
lib/webhooks/trigger.rb
Normal file
7
lib/webhooks/trigger.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
class Webhooks::Trigger
|
||||
def self.execute(url, payload)
|
||||
RestClient.post(url, payload)
|
||||
rescue StandardError => e
|
||||
Raven.capture_exception(e)
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user