mirror of
https://github.com/IgorL123/mafia_api.git
synced 2026-09-23 23:20:19 +00:00
del set
This commit is contained in:
@@ -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()
|
||||
Reference in New Issue
Block a user