Merge remote-tracking branch 'origin/dev'
This commit is contained in:
commit
6ab29e3c43
20
main.py
Normal file
20
main.py
Normal 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
|
Loading…
x
Reference in New Issue
Block a user