zuehue commited on
Commit
c6ef249
·
verified ·
1 Parent(s): e6d95b8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -1
app.py CHANGED
@@ -1,3 +1,8 @@
 
 
 
 
 
1
  @app.route('/api', methods=['GET'])
2
  def check_email():
3
  email = request.args.get('email')
@@ -19,4 +24,7 @@ def check_email():
19
  websites = [website for website in websites if website.lower() != "email"]
20
 
21
  # Return the result as JSON
22
- return jsonify({'email': email, 'websites': websites})
 
 
 
 
1
+ from flask import Flask, jsonify, request
2
+ import subprocess
3
+
4
+ app = Flask(__name__)
5
+
6
  @app.route('/api', methods=['GET'])
7
  def check_email():
8
  email = request.args.get('email')
 
24
  websites = [website for website in websites if website.lower() != "email"]
25
 
26
  # Return the result as JSON
27
+ return jsonify({'email': email, 'websites': websites})
28
+
29
+ if __name__ == '__main__':
30
+ app.run(host='0.0.0.0', port=7860)