Anant0712 commited on
Commit
bc51dd8
·
verified ·
1 Parent(s): c22c3cb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -90,10 +90,14 @@ def settings():
90
 
91
  # Serve frontend
92
  @app.route('/', defaults={'path': ''})
93
- @app.route('/<path:path>')
94
- def serve_frontend(path):
95
  return render_template('index.html')
96
 
 
 
 
 
97
  @app.errorhandler(404)
98
  def page_not_found(e):
99
  return jsonify({'error': 'Page not found'}), 404
 
90
 
91
  # Serve frontend
92
  @app.route('/', defaults={'path': ''})
93
+ @app.route('/')
94
+ def home():
95
  return render_template('index.html')
96
 
97
+ @app.route('/login')
98
+ def login():
99
+ return render_template('login.html')
100
+
101
  @app.errorhandler(404)
102
  def page_not_found(e):
103
  return jsonify({'error': 'Page not found'}), 404