Skip to content

Instantly share code, notes, and snippets.

@MattKovtun
Last active July 18, 2018 10:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MattKovtun/66c4641e1281d1b6e43f81c5bf988701 to your computer and use it in GitHub Desktop.
Save MattKovtun/66c4641e1281d1b6e43f81c5bf988701 to your computer and use it in GitHub Desktop.
from flask_cors import CORS
from flask import Flask, render_template
app = Flask(__name__)
CORS(app)
@app.route("/", methods=["GET"])
def main():
return render_template('index.html')
if __name__ == "__main__":
app.run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment