forked from MarseyWorld/MarseyWorld
fdsfds
parent
9c6d2d15e3
commit
0a4ee3605d
|
@ -121,12 +121,14 @@ def after_request(response):
|
||||||
response.headers.add("X-Frame-Options", "deny")
|
response.headers.add("X-Frame-Options", "deny")
|
||||||
return response
|
return response
|
||||||
|
|
||||||
@app.route("/", subdomain="<whatever>")
|
@app.route("/", subdomain="www")
|
||||||
def sub_redirect(whatever):
|
@app.route("/", subdomain="old")
|
||||||
|
def sub_redirect():
|
||||||
return redirect(request.full_path)
|
return redirect(request.full_path)
|
||||||
|
|
||||||
@app.route("/<path:path>", subdomain="<whatever>")
|
@app.route("/<path:path>", subdomain="www")
|
||||||
def sub_redirect2(path, whatever):
|
@app.route("/<path:path>", subdomain="old")
|
||||||
|
def sub_redirect2(path):
|
||||||
return redirect(request.full_path)
|
return redirect(request.full_path)
|
||||||
|
|
||||||
from files.routes import *
|
from files.routes import *
|
Loading…
Reference in New Issue