Skip to content

Instantly share code, notes, and snippets.

@fumblehool
Created November 21, 2017 10:07
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 fumblehool/6e99cc9f8819f90cb3b273cc42ef4b65 to your computer and use it in GitHub Desktop.
Save fumblehool/6e99cc9f8819f90cb3b273cc42ef4b65 to your computer and use it in GitHub Desktop.
# Simple Flask app.
from flask import Flask, g, request
app = Flask(__name__)
"""
Root
"""
@app.route("/")
def index():
return "hello. You have arrived at '/'"
"""
Route
"""
@app.route("/hello")
def hello():
return "hello user!!"
"""
Flask main
"""
if __name__ == "__main__":
app.run(host='0.0.0.0', port=5005)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment