File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change 1
1
# frozen_string_literal: true
2
2
3
+ # !!! IMPORTANT !!!
4
+ # This file handles the catchall endpoint for the Hooks application.
5
+ # You should not be using catchall endpoints in production.
6
+ # This is mainly for development, testing, and demo purposes.
7
+ # The logging is limited, lifecycle hooks are not called,
8
+ # and it does not support plugins or instruments.
9
+ # Use with caution!
10
+
3
11
require "grape"
4
12
require_relative "../../plugins/handlers/default"
5
13
require_relative "../helpers"
@@ -23,7 +31,7 @@ def self.route_block(captured_config, captured_logger)
23
31
24
32
# Set request context for logging
25
33
request_context = {
26
- request_id : request_id ,
34
+ request_id :,
27
35
path : "/#{ params [ :path ] } " ,
28
36
handler : "DefaultHandler"
29
37
}
@@ -45,8 +53,8 @@ def self.route_block(captured_config, captured_logger)
45
53
46
54
# Call handler
47
55
response = handler . call (
48
- payload : payload ,
49
- headers : headers ,
56
+ payload :,
57
+ headers :,
50
58
config : { }
51
59
)
52
60
You can’t perform that action at this time.
0 commit comments