Skip to content

Instantly share code, notes, and snippets.

@robert8138
Last active March 24, 2016 15:34
Show Gist options
  • Save robert8138/7e42869e9e234aa8b7c3 to your computer and use it in GitHub Desktop.
Save robert8138/7e42869e9e234aa8b7c3 to your computer and use it in GitHub Desktop.
@webapp.route('/', methods = ['GET', 'POST'])
def hello_world():
if request.method == 'POST':
return 'Hello World!' + request.form.get('username', '')
else:
return 'Hello World Anonymous!'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment