zuehue commited on
Commit
b35a2f0
·
verified ·
1 Parent(s): 3fb844e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -5,9 +5,9 @@ import os
5
 
6
  app = Flask(__name__)
7
 
8
- @app.route('/check_email', methods=['POST'])
9
  def check_email():
10
- email = request.json.get('email')
11
  if not email:
12
  return jsonify({'error': 'Email is required'}), 400
13
 
 
5
 
6
  app = Flask(__name__)
7
 
8
+ @app.route('/check_email', methods=['GET'])
9
  def check_email():
10
+ email = request.args.get('email')
11
  if not email:
12
  return jsonify({'error': 'Email is required'}), 400
13