zklcdc commited on
Commit
a46452f
·
verified ·
1 Parent(s): 258efe1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -3,12 +3,12 @@ from flask import Flask, redirect
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)
12
 
13
  if __name__ == '__main__':
14
  app.run()
 
3
  app = Flask(__name__)
4
 
5
  @app.route('/<path:subpath>')
6
+ def subpath(subpath):
7
  return redirect('https://dongsiqie.me', code=302)
8
 
9
+ @app.route('/')
10
+ def index():
11
+ return redirect('https://dongsiqie.me', code=302)
12
 
13
  if __name__ == '__main__':
14
  app.run()