XZZ/main.py
2020-08-12 19:31:57 +08:00

12 lines
No EOL
254 B
Python

from flask import Flask, request
from config import HOST, PORT
from route import ZZRouter
app = Flask(__name__)
@app.route('/', methods=['POST'])
def whenmsg():
ZZRouter(request.get_json())
return ''
app.run(host= HOST,port = PORT, debug=True)