inital commit
This commit is contained in:
parent
b4943f2fd6
commit
860b98d187
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
|
5
requirements.txt
Normal file
5
requirements.txt
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
# The order of packages is significant, because pip processes them in the order
|
||||||
|
# of appearance. Changing the order has an impact on the overall integration
|
||||||
|
# process, which may cause wedges in the gate later.
|
||||||
|
|
||||||
|
bottle==0.11.6
|
Loading…
x
Reference in New Issue
Block a user