XZZ/main.py

14 lines
254 B
Python
Raw Normal View History

2020-02-27 21:47:36 +08:00
from flask import Flask, request
from config import PORT
from route import ZZRouter
app = Flask(__name__)
@app.route('/', methods=['POST'])
def whenmsg():
ZZRouter(request.get_json())
return ''
2020-03-16 15:46:37 +08:00
app.run(host='0.0.0.0',port = PORT, debug=True)
2020-03-16 15:42:57 +08:00