Created
March 3, 2019 16:32
-
-
Save saiyerniakhil/b73db739247840e1f77be3689cd255b4 to your computer and use it in GitHub Desktop.
Adding Routes to a Flask Web app
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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