Created
November 18, 2016 20:21
-
-
Save mattmakai/8f3412b0ab4171aab375292f604d687f to your computer and use it in GitHub Desktop.
Starter Bottle app with a single route
This file contains hidden or 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
import bottle | |
from bottle import route, run, Response | |
app = bottle.default_app() | |
@route('/') | |
def index(): | |
"""Returns standard text response to show app is working.""" | |
return Response("My Bottle app is up and running!") | |
if __name__ == '__main__': | |
run(host='127.0.0.1', port=5000, debug=False, reloader=True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What