Skip to content

Instantly share code, notes, and snippets.

@saiyerniakhil
Created March 3, 2019 16:32
Show Gist options
  • Save saiyerniakhil/b73db739247840e1f77be3689cd255b4 to your computer and use it in GitHub Desktop.
Save saiyerniakhil/b73db739247840e1f77be3689cd255b4 to your computer and use it in GitHub Desktop.
Adding Routes to a Flask Web app
from flask import Flask
app = Flask(__name__)
@app.route("/")
def hello():
return "Hello World!"
@app.route("/first")
def first():
return "The First Route"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment