Spaces:
Running
Running
zklcdc
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -2,6 +2,10 @@ from flask import Flask, redirect
|
|
2 |
|
3 |
app = Flask(__name__)
|
4 |
|
|
|
|
|
|
|
|
|
5 |
@app.route('/')
|
6 |
def index():
|
7 |
return redirect('https://dongsiqie.me', code=302)
|
|
|
2 |
|
3 |
app = Flask(__name__)
|
4 |
|
5 |
+
@app.route('/<path:subpath>')
|
6 |
+
def index():
|
7 |
+
return redirect('https://dongsiqie.me', code=302)
|
8 |
+
|
9 |
@app.route('/')
|
10 |
def index():
|
11 |
return redirect('https://dongsiqie.me', code=302)
|