diff --git a/files/__main__.py b/files/__main__.py index bcaebe3b9c..1042f075e2 100644 --- a/files/__main__.py +++ b/files/__main__.py @@ -121,12 +121,14 @@ def after_request(response): response.headers.add("X-Frame-Options", "deny") return response -@app.route("/", subdomain="") -def sub_redirect(whatever): +@app.route("/", subdomain="www") +@app.route("/", subdomain="old") +def sub_redirect(): return redirect(request.full_path) -@app.route("/", subdomain="") -def sub_redirect2(path, whatever): +@app.route("/", subdomain="www") +@app.route("/", subdomain="old") +def sub_redirect2(path): return redirect(request.full_path) from files.routes import * \ No newline at end of file