summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Klare <j.klare@cloudbau.de>2016-04-26 17:21:04 -0500
committerJan Klare <j.klare@cloudbau.de>2016-04-26 17:21:04 -0500
commit6ab29e3c434c106fd34ac7ef141cf1b16cb6e177 (patch)
treeb438e054e7428ffb07c3f992ce87fe17906ee08b
parent8a73275a2ffe5b7d86e5f527f99e5f1028fde266 (diff)
parent860b98d18757850d121aff8f702b8c33f64ce037 (diff)
Merge remote-tracking branch 'origin/dev'
-rw-r--r--main.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/main.py b/main.py
new file mode 100644
index 0000000..de16cba
--- /dev/null
+++ b/main.py
@@ -0,0 +1,20 @@
1from bottle import Bottle
2
3app = Bottle()
4
5# Note: We don't need to call run() since our application is embedded within
6# the App Engine WSGI application server.
7
8
9@app.route('/')
10def hello():
11 """Return a friendly HTTP greeting."""
12 return 'Hello World!'
13
14
15# Define an handler for 404 errors.
16@app.error(404)
17def error_404(error):
18 """Return a custom 404 error."""
19 return 'Sorry, nothing at this URL.'
20Status API Training Shop Blog About