From 23a6bcc458d25d007512c0c36db29b6d81a4cfa3 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 24 Dec 2021 04:59:35 +0200 Subject: [PATCH] fdsfsd --- files/__main__.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/files/__main__.py b/files/__main__.py index 0137a5ea8..090bd6c4c 100644 --- a/files/__main__.py +++ b/files/__main__.py @@ -121,11 +121,12 @@ def after_request(response): response.headers.add("X-Frame-Options", "deny") return response -@app.route("/", subdomain="www") -@app.route("/", subdomain="old") -@app.route("/", subdomain="www") -@app.route("/", subdomain="old") -def sub_redirect(path): +@app.route("/", subdomain="") +def sub_redirect(whatever): + return redirect(request.full_path) + +@app.route("/", subdomain="") +def sub_redirect(path, whatever): return redirect(request.full_path) from files.routes import * \ No newline at end of file