mirror of
https://github.com/IgorL123/mafia_api.git
synced 2026-09-24 07:30:15 +00:00
upd 0.3
This commit is contained in:
@@ -8,21 +8,22 @@ app = Flask(__name__)
|
||||
def hello_world(): # put application's code here
|
||||
return 'Hello World!'
|
||||
|
||||
@app.route('/create_game', methods = ["POST"])
|
||||
|
||||
@app.route('/create_game', methods=["POST"])
|
||||
def create():
|
||||
TCI = request.json
|
||||
db.query_ins_chat(TCI)
|
||||
|
||||
|
||||
|
||||
|
||||
@app.route('/start_game')
|
||||
def start(): # Команда принимает на вход
|
||||
def start(): # Команда принимает на вход
|
||||
pass
|
||||
|
||||
|
||||
@app.route('/action')
|
||||
def action():
|
||||
def action():
|
||||
pass
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
app.run()
|
||||
app.run()
|
||||
|
||||
Reference in New Issue
Block a user