mirror of
https://github.com/janeczku/calibre-web
synced 2024-12-25 01:20:32 +00:00
Added public /reconnect endpoint
This commit is contained in:
parent
f736a15c12
commit
c4e3f3670f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user