Created
September 20, 2022 13:27
-
-
Save julianrubisch/37f31f52fee291449bae0231bea234d9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
post "events", to: "events#create", constraints: ->(req) do | |
req.user_agent == "SavvyCal Webhooks (https://savvycal.com)" && | |
req.params["type"] == "event.created" | |
end | |
post "events", to: "events#update", constraints: ->(req) do | |
req.user_agent == "SavvyCal Webhooks (https://savvycal.com)" && | |
["event.rescheduled", "event.canceled"].include?(req.params["type"]) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment