FIX HOME_URL quando c'e' ROUTE_PREFIX

This commit is contained in:
boyska 2019-07-08 10:48:25 +02:00
parent a91c0f4eb2
commit 7262d14b83

View file

@ -195,7 +195,7 @@ def create_app(queue, larigira):
app.register_blueprint(rpc)
app.register_blueprint(viewui)
app.register_blueprint(db)
app.route("/")(
app.route(get_conf()["ROUTE_PREFIX"] + "/")(
lambda: redirect(get_conf()["ROUTE_PREFIX"] + get_conf()["HOME_URL"])
)
app.queue = queue