forked from MarseyWorld/MarseyWorld
fsdsdf
parent
876a6c1f44
commit
0907ea77c1
|
@ -123,4 +123,16 @@ def after_request(response):
|
|||
return response
|
||||
|
||||
|
||||
from files.routes import *
|
||||
@app.route("/<path:path>", subdomain="www")
|
||||
@app.route("/<path:path>", subdomain="old")
|
||||
def sub_redirect(path):
|
||||
return redirect(f"https://{app.config['SERVER_NAME']}/{path}")
|
||||
|
||||
|
||||
@app.route("/", subdomain="www")
|
||||
@app.route("/", subdomain="old")
|
||||
def sub_redirect2():
|
||||
return redirect(f"https://{app.config['SERVER_NAME']}/")
|
||||
|
||||
|
||||
from files.routes import *
|
Loading…
Reference in New Issue