Merge remote-tracking branch 'origin/dev'

This commit is contained in:
Jan Klare 2016-04-26 17:21:04 -05:00
commit 6ab29e3c43
1 changed files with 20 additions and 0 deletions

20
main.py Normal file
View File

@ -0,0 +1,20 @@
from bottle import Bottle
app = Bottle()
# Note: We don't need to call run() since our application is embedded within
# the App Engine WSGI application server.
@app.route('/')
def hello():
"""Return a friendly HTTP greeting."""
return 'Hello World!'
# Define an handler for 404 errors.
@app.error(404)
def error_404(error):
"""Return a custom 404 error."""
return 'Sorry, nothing at this URL.'
Status API Training Shop Blog About