XZZ/main.py
2020-02-27 21:47:36 +08:00

14 lines
281 B
Python

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 ''
app.run(host='0.0.0.0', port=PORT)
if __name__ == '__main__':
app.run()