Skip to content

Commit

Permalink
Add health check endpoint to main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
yuk1-ishida committed Nov 15, 2023
1 parent 84b4cba commit a23a71b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions linebot/opt/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ def callback():
return "OK"


@app.route("/health", methods=["POST"])
def health():
return "200 OK"


@handler.add(FollowEvent) # FollowEventをimportするのを忘れずに!
def follow_message(event): # event: LineMessagingAPIで定義されるリクエストボディ
# print(event)
Expand Down

0 comments on commit a23a71b

Please sign in to comment.