Commit c4e3f367 authored by yjouanique's avatar yjouanique

Added public /reconnect endpoint

parent f736a15c
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment