From 02c1cda350fe155fb7dc9b6aafcd409c0e32c1c1 Mon Sep 17 00:00:00 2001 From: woni <320753691@qq.com> Date: Wed, 26 Mar 2025 18:57:50 +0800 Subject: [PATCH] add push webhook --- app/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/__init__.py b/app/__init__.py index b67943f..bc7d159 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -197,7 +197,7 @@ def create_app() -> Flask: def index(): return {"test": "ok"} - @app.route("/webhook", methods=["GET"]) + @app.route("/webhook", methods=["GET", "POST"]) def push_xbot_activity_bot(): # 解析请求体中的json数据 data = json.loads(request.data)