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 +1,2 @@
|
|||||||
venv
|
venv
|
||||||
|
setiings.json
|
||||||
|
|||||||
Binary file not shown.
@@ -1,4 +1,5 @@
|
|||||||
from flask import Flask, request
|
from flask import Flask, request
|
||||||
|
# import db
|
||||||
|
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
|
|
||||||
@@ -7,20 +8,21 @@ app = Flask(__name__)
|
|||||||
def hello_world(): # put application's code here
|
def hello_world(): # put application's code here
|
||||||
return 'Hello World!'
|
return 'Hello World!'
|
||||||
|
|
||||||
@app.route('/create_game', method = ["POST"])
|
@app.route('/create_game', methods = ["POST"])
|
||||||
def create(str truechatid):
|
def create():
|
||||||
|
TCI = request.json
|
||||||
|
db.query_ins_chat(TCI)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@app.route('/start_game')
|
@app.route('/start_game')
|
||||||
def start(): # Команда принимает на вход
|
def start(): # Команда принимает на вход
|
||||||
|
pass
|
||||||
|
|
||||||
@app.route('/action')
|
@app.route('/action')
|
||||||
def action():
|
def action():
|
||||||
|
pass
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
app.run()
|
app.run()
|
||||||
Reference in New Issue
Block a user