Added public /reconnect endpoint
This commit is contained in:
parent
f736a15c12
commit
c4e3f3670f
1 changed files with 6 additions and 0 deletions
|
@ -1884,6 +1884,12 @@ def shutdown():
|
||||||
return json.dumps({})
|
return json.dumps({})
|
||||||
abort(404)
|
abort(404)
|
||||||
|
|
||||||
|
@app.route("/reconnect")
|
||||||
|
def reconnect():
|
||||||
|
db.session.close()
|
||||||
|
db.engine.dispose()
|
||||||
|
db.setup_db()
|
||||||
|
return json.dumps({})
|
||||||
|
|
||||||
@app.route("/search", methods=["GET"])
|
@app.route("/search", methods=["GET"])
|
||||||
@login_required_if_no_ano
|
@login_required_if_no_ano
|
||||||
|
|
Loading…
Reference in a new issue