ht2 / myapp.py
Geek7's picture
Update myapp.py
d866890 verified
raw
history blame contribute delete
280 Bytes
from flask import Flask, render_template
from flask_cors import CORS # Import CORS
myapp = Flask(__name__)
# Enable CORS for the entire app
CORS(myapp)
@myapp.route('/')
def home():
return render_template('index.html')
if __name__ == "__main__":
myapp.run(debug=True)