Replies: 1 comment 3 replies
-
The def github_webhook
request.post "github/webhook" do
'been there'
end
end |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hiya
I'm playing around with Roda plugins, however, I'm not sure what's the recommended way to implement the following simple case: a plugin which injects POST routes.
Given the following plugin:
Used in an app like so:
With this in place
GET /github_webhook
responds with "been there".How can I implement the same for a route such as
POST /github/webhook
?(Since the webhook is automatically configured upstream, the route
/github/webhook
is mandatory. I'm looking for a way to add thePOST /github/webhook
route to the Roda app with minimal code added to the application.rb while still doing things the Roda way.)Thanks a lot for your help!
Beta Was this translation helpful? Give feedback.
All reactions