Update myapp.py
Browse files
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)
|