Created
December 7, 2018 22:56
-
-
Save infamousjoeg/8c448045c8f97868d759a67f3dd96391 to your computer and use it in GitHub Desktop.
Joe-and-Rob-MPTest created by infamousjoeg - https://repl.it/@infamousjoeg/Joe-and-Rob-MPTest
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('app') | |
#@app.route('/') | |
#def hello_world(): | |
# return 'Hello, World!' | |
@app.route('/rob') | |
def rob(): | |
return 'He\'s cooler than Hello World.' | |
@app.route('/joe') | |
def joe(): | |
return 'He\'s COMPLETELY AWESOME!' | |
@app.route('/') | |
def doshit(): | |
return othershit() | |
def othershit(): | |
data = '' | |
for i in range(0, 10): | |
data = data + str(i) + '<br />' | |
return data | |
app.run(host='0.0.0.0', port=8080) | |
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
Flask==1.0.2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment