This commit is contained in:
ada-dmitry
2023-08-22 15:44:27 +03:00
parent aaf66b516b
commit 8e05627782
4 changed files with 10 additions and 7 deletions
+7 -5
View File
@@ -1,4 +1,5 @@
from flask import Flask, request
# import db
app = Flask(__name__)
@@ -7,20 +8,21 @@ app = Flask(__name__)
def hello_world(): # put application's code here
return 'Hello World!'
@app.route('/create_game', method = ["POST"])
def create(str truechatid):
@app.route('/create_game', methods = ["POST"])
def create():
TCI = request.json
db.query_ins_chat(TCI)
@app.route('/start_game')
def start(): # Команда принимает на вход
pass
@app.route('/action')
def action():
pass
if __name__ == '__main__':
app.run()