Skip to content

Commit 73b56d3

Browse files
committed
old gui in now /2, added stub redirect to /2 if new gui not there
1 parent 9ef7e38 commit 73b56d3

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

main.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@
2626
send_file,
2727
Response,
2828
jsonify,
29-
send_from_directory)
29+
send_from_directory,
30+
redirect)
3031
from flask_babel import Babel
3132
from flask_cors import CORS
3233
from werkzeug.datastructures import Headers
@@ -112,8 +113,12 @@ def render_static_assets4(filename):
112113
def render_static_assets5(filename):
113114
return send_from_directory('dist', filename)
114115

116+
@app.route('/')
117+
def render_static_assets6():
118+
return redirect('/vue/index.html', code=302)
119+
115120
# Serve web app application templates
116-
@app.route("/")
121+
@app.route("/2")
117122
def handle_home():
118123
return render_template('main.html',
119124
host=request.host[:request.host.find(':')],

0 commit comments

Comments
 (0)