Spaces:
Running
Running
Commit
·
a69f1b6
1
Parent(s):
9cacb6c
add home
Browse files
main.py
CHANGED
|
@@ -36,6 +36,9 @@ app = Flask(__name__)
|
|
| 36 |
configuration = Configuration(access_token='YOUR_CHANNEL_ACCESS_TOKEN')
|
| 37 |
handler = WebhookHandler('YOUR_CHANNEL_SECRET')
|
| 38 |
|
|
|
|
|
|
|
|
|
|
| 39 |
|
| 40 |
@app.route("/callback", methods=['POST'])
|
| 41 |
def callback():
|
|
|
|
| 36 |
configuration = Configuration(access_token='YOUR_CHANNEL_ACCESS_TOKEN')
|
| 37 |
handler = WebhookHandler('YOUR_CHANNEL_SECRET')
|
| 38 |
|
| 39 |
+
@app.route("/")
|
| 40 |
+
def home():
|
| 41 |
+
return {"message": "Line Webhook Server"}
|
| 42 |
|
| 43 |
@app.route("/callback", methods=['POST'])
|
| 44 |
def callback():
|