Added public /reconnect endpoint

This commit is contained in:
yjouanique 2019-06-07 12:15:31 +07:00
parent f736a15c12
commit c4e3f3670f

View file

@ -1884,6 +1884,12 @@ def shutdown():
return json.dumps({})
abort(404)
@app.route("/reconnect")
def reconnect():
db.session.close()
db.engine.dispose()
db.setup_db()
return json.dumps({})
@app.route("/search", methods=["GET"])
@login_required_if_no_ano