webcodelab commited on
Commit
860cff0
·
verified ·
1 Parent(s): f54accb

Update app/routes.py

Browse files
Files changed (1) hide show
  1. app/routes.py +2 -1
app/routes.py CHANGED
@@ -392,7 +392,8 @@ allowed_extensions = {'pdf', 'docx'}
392
  def allowed_file(filename):
393
  return '.' in filename and filename.rsplit('.', 1)[1].lower() in allowed_extensions
394
 
395
- @auth.route('/try-api', methods=['POST'])
 
396
  def try_api():
397
  api_key = request.form.get('api_key')
398
  resumes = request.files.getlist('resumes')
 
392
  def allowed_file(filename):
393
  return '.' in filename and filename.rsplit('.', 1)[1].lower() in allowed_extensions
394
 
395
+
396
+ @auth.route('/try-api', methods=['GET', 'POST'])
397
  def try_api():
398
  api_key = request.form.get('api_key')
399
  resumes = request.files.getlist('resumes')