Browse Source

inital commit

changes/37/324637/1
JJ Asghar 3 years ago
parent
commit
860b98d187
3 changed files with 25 additions and 0 deletions
  1. 20
    0
      main.py
  2. 5
    0
      requirements.txt
  3. 0
    0
      setup.py

+ 20
- 0
main.py View File

@@ -0,0 +1,20 @@
1
+from bottle import Bottle
2
+
3
+app = 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('/')
10
+def hello():
11
+    """Return a friendly HTTP greeting."""
12
+    return 'Hello World!'
13
+
14
+
15
+# Define an handler for 404 errors.
16
+@app.error(404)
17
+def error_404(error):
18
+    """Return a custom 404 error."""
19
+    return 'Sorry, nothing at this URL.'
20
+Status API Training Shop Blog About

+ 5
- 0
requirements.txt View File

@@ -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
+
5
+bottle==0.11.6

+ 0
- 0
setup.py View File


Loading…
Cancel
Save