mirror of
https://github.com/ClovertaTheTrilobita/SanYeCao-Nonebot.git
synced 2026-07-03 23:51:26 +00:00
Compare commits
No commits in common. "928d95f9d08af1ab03df2fa048de95ad21222127" and "76a4926995fae18c852586b0d7a72e3f6f20d565" have entirely different histories.
928d95f9d0
...
76a4926995
1 changed files with 1 additions and 5 deletions
|
|
@ -1,4 +1,4 @@
|
|||
from flask import Flask, jsonify
|
||||
from flask import Flask
|
||||
from src.clover_sqlite.models.questions import Question
|
||||
app = Flask(__name__)
|
||||
|
||||
|
|
@ -17,10 +17,6 @@ async def init_data():
|
|||
|
||||
return "failed"
|
||||
|
||||
@app.route("/ping", methods=["GET"])
|
||||
def ping():
|
||||
return jsonify({"status": "ok", "message": "pong"}), 200
|
||||
|
||||
def start_flask():
|
||||
print("Flask启动中...")
|
||||
app.run(host='0.0.0.0', port=5001, debug=False, use_reloader=False)
|
||||
Loading…
Reference in a new issue