2
0
mirror of https://github.com/janeczku/calibre-web synced 2024-11-10 01:13:33 +00:00

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