amauricunha commited on
Commit
236e06e
·
verified ·
1 Parent(s): 6f7255e

Upload flask_app_hf.py

Browse files
Files changed (1) hide show
  1. flask_app_hf.py +6 -0
flask_app_hf.py CHANGED
@@ -130,6 +130,12 @@ def index():
130
  def admin():
131
  return render_template('admin.html')
132
 
 
 
 
 
 
 
133
  @app.route('/status')
134
  def status():
135
  return render_template('status.html')
 
130
  def admin():
131
  return render_template('admin.html')
132
 
133
+
134
+ @app.route('/dashboard')
135
+ def dashboard_redirect():
136
+ """Legacy route: redirect /dashboard to /admin."""
137
+ return redirect(url_for('admin'))
138
+
139
  @app.route('/status')
140
  def status():
141
  return render_template('status.html')