Skip to content

Instantly share code, notes, and snippets.

@mattmakai
Created November 18, 2016 20:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mattmakai/8f3412b0ab4171aab375292f604d687f to your computer and use it in GitHub Desktop.
Save mattmakai/8f3412b0ab4171aab375292f604d687f to your computer and use it in GitHub Desktop.
Starter Bottle app with a single route
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)
Copy link

ghost commented Aug 18, 2019

What

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment