Skip to content

Commit b047a80

Browse files
committed
Update event handler route
1 parent f9710ad commit b047a80

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

api/ruby/building-your-first-github-app/advanced_server.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ class GHAapp < Sinatra::Application
8686
# This is the webhook endpoint that GH will call with events, and hence where we will do our event handling
8787
#
8888

89-
post '/event_handler' do
89+
post '/' do
9090
request.body.rewind
9191
payload_raw = request.body.read # We need the raw text of the body to check the webhook signature
9292
begin

api/ruby/building-your-first-github-app/server.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ class GHAapp < Sinatra::Application
9595
# This is the webhook endpoint that GH will call with events, and hence where we will do our event handling
9696
#
9797

98-
post '/event_handler' do
98+
post '/' do
9999
request.body.rewind
100100
payload_raw = request.body.read # We need the raw text of the body to check the webhook signature
101101
begin

0 commit comments

Comments
 (0)