This commit is contained in:
Emily 2018-05-31 10:59:10 +02:00
parent e3188c7331
commit 55c99891d6

6
web.py
View File

@ -28,11 +28,13 @@ def api_index():
@app.route("/api/getUpdate", methods=["GET", "POST"])
def api_update():
return update.handle(request)
data = update.handle(request)
return jsonify(data)
@app.route("/api/getFile", methods=["GET", "POST"])
def api_file():
return file.handle(request)
data = file.handle(request)
return jsonify(data)
if __name__ == "__main__":
app.run(**config["web"])