File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -81,6 +81,8 @@ heroku config:set CHANNEL_SECRET=YOUR_CHANNEL_SECRET
81
81
- Push the application to the server.
82
82
83
83
``` bash
84
+ git add .
85
+ git commit -m " Initial commit for Heroku testing"
84
86
git push heroku master
85
87
```
86
88
Original file line number Diff line number Diff line change @@ -47,6 +47,18 @@ const textEventHandler = async (event: WebhookEvent): Promise<MessageAPIResponse
47
47
app . use ( middleware ( middlewareConfig ) ) ;
48
48
49
49
// Route handler to receive webhook events.
50
+ // This route is used to receive connection tests.
51
+ app . get (
52
+ '/' ,
53
+ async ( _ : Request , res : Response ) : Promise < Response > => {
54
+ return res . status ( 200 ) . json ( {
55
+ status : 'success' ,
56
+ message : 'Connected successfully!' ,
57
+ } ) ;
58
+ }
59
+ ) ;
60
+
61
+ // This route is used for the Webhook.
50
62
app . post (
51
63
'/webhook' ,
52
64
async ( req : Request , res : Response ) : Promise < Response > => {
You can’t perform that action at this time.
0 commit comments