fdsfsd
This commit is contained in:
parent
3e6664e566
commit
fe99c67a0e
1 changed files with 6 additions and 5 deletions
|
@ -121,11 +121,12 @@ def after_request(response):
|
|||
response.headers.add("X-Frame-Options", "deny")
|
||||
return response
|
||||
|
||||
@app.route("/<path:path>", subdomain="www")
|
||||
@app.route("/<path:path>", subdomain="old")
|
||||
@app.route("/", subdomain="www")
|
||||
@app.route("/", subdomain="old")
|
||||
def sub_redirect(path):
|
||||
@app.route("/", subdomain="<whatever>")
|
||||
def sub_redirect(whatever):
|
||||
return redirect(request.full_path)
|
||||
|
||||
@app.route("/<path:path>", subdomain="<whatever>")
|
||||
def sub_redirect(path, whatever):
|
||||
return redirect(request.full_path)
|
||||
|
||||
from files.routes import *
|
Loading…
Add table
Add a link
Reference in a new issue