Geek7 commited on
Commit
d866890
·
verified ·
1 Parent(s): 3184932

Update myapp.py

Browse files
Files changed (1) hide show
  1. myapp.py +14 -0
myapp.py CHANGED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from flask import Flask, render_template
2
+ from flask_cors import CORS # Import CORS
3
+
4
+ myapp = Flask(__name__)
5
+
6
+ # Enable CORS for the entire app
7
+ CORS(myapp)
8
+
9
+ @myapp.route('/')
10
+ def home():
11
+ return render_template('index.html')
12
+
13
+ if __name__ == "__main__":
14
+ myapp.run(debug=True)