Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ app = Flask(__name__)
|
|
4 |
|
5 |
@app.route('/')
|
6 |
def index():
|
7 |
-
return redirect('https://
|
8 |
|
9 |
@app.route('/<path:path>', methods=['GET', 'POST'])
|
10 |
def redirect_all(path):
|
@@ -12,7 +12,7 @@ def redirect_all(path):
|
|
12 |
return redirect('http://127.0.0.1', code=301)
|
13 |
if request.method == 'POST':
|
14 |
return redirect('http://127.0.0.1', code=301)
|
15 |
-
return redirect('https://
|
16 |
|
17 |
if __name__ == '__main__':
|
18 |
app.run()
|
|
|
4 |
|
5 |
@app.route('/')
|
6 |
def index():
|
7 |
+
return redirect('https://niansuhai-main.static.hf.space', code=302)
|
8 |
|
9 |
@app.route('/<path:path>', methods=['GET', 'POST'])
|
10 |
def redirect_all(path):
|
|
|
12 |
return redirect('http://127.0.0.1', code=301)
|
13 |
if request.method == 'POST':
|
14 |
return redirect('http://127.0.0.1', code=301)
|
15 |
+
return redirect('https://niansuhai-main.static.hf.space', code=302)
|
16 |
|
17 |
if __name__ == '__main__':
|
18 |
app.run()
|