diff options
| author | 2023-08-13 12:23:35 +0800 | |
|---|---|---|
| committer | 2023-08-13 12:23:35 +0800 | |
| commit | 5f1c3792cae7ab78e6b85ed69f61534854b633a8 (patch) | |
| tree | 335f1c73583762e83679aa588a00cc55fdd9ad79 /tests/plugins/test2.py | |
| parent | c3508543f1aa6b29a5045bd846408c6141e77eca (diff) | |
| download | HydroRoll-5f1c3792cae7ab78e6b85ed69f61534854b633a8.tar.gz HydroRoll-5f1c3792cae7ab78e6b85ed69f61534854b633a8.zip | |
feat: 优化架构
Diffstat (limited to 'tests/plugins/test2.py')
| -rw-r--r-- | tests/plugins/test2.py | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/tests/plugins/test2.py b/tests/plugins/test2.py deleted file mode 100644 index 45b37a9..0000000 --- a/tests/plugins/test2.py +++ /dev/null @@ -1,15 +0,0 @@ -from flask import Flask, request - -class Webhooks: - app = Flask(__name__) - requests = request - payload = None - - @app.route('/', method=['POST', 'GET']) - async def handle_webhook(self): - self.payload = await request.get_json() - # 在这里处理接收到的数据 - return 'Webhook received' - - # app.run(host='0.0.0.0',port=3000) - |
