XZZ/main.py

12 lines
254 B
Python
Raw Permalink Normal View History

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