summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJJ Asghar <jj@chef.io>2016-04-26 17:14:44 -0500
committerJJ Asghar <jj@chef.io>2016-04-26 17:14:44 -0500
commit860b98d18757850d121aff8f702b8c33f64ce037 (patch)
treeafe083d69198bae72d235be694105f57148eb775
parentb4943f2fd68ba161d7b29c23b5732e7c32ae5a3f (diff)
inital commit
-rw-r--r--main.py20
-rw-r--r--requirements.txt5
-rw-r--r--setup.py0
3 files changed, 25 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
diff --git a/requirements.txt b/requirements.txt
new file mode 100644
index 0000000..3d6958e
--- /dev/null
+++ b/requirements.txt
@@ -0,0 +1,5 @@
1# The order of packages is significant, because pip processes them in the order
2# of appearance. Changing the order has an impact on the overall integration
3# process, which may cause wedges in the gate later.
4
5bottle==0.11.6
diff --git a/setup.py b/setup.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/setup.py