ready create

This commit is contained in:
ada-dmitry
2023-08-22 16:02:01 +03:00
parent cd587eade1
commit b80e790ddc
2 changed files with 18 additions and 13 deletions
+5 -3
View File
@@ -1,5 +1,5 @@
from flask import Flask, request
# import db
import db
app = Flask(__name__)
@@ -11,8 +11,10 @@ def hello_world(): # put application's code here
@app.route('/create_game', methods=["POST"])
def create():
TCI = request.json
db.query_ins_chat(TCI)
TCI = request.json['chatID']
curs = db.conn()
db.query_ins_chat(TCI, curs)
db.close(curs)
@app.route('/start_game')