Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3755115
D986.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
689 B
Referenced Files
None
Subscribers
None
D986.diff
View Options
diff --git a/app.py b/app.py
new file mode 100644
--- /dev/null
+++ b/app.py
@@ -0,0 +1,22 @@
+#!/usr/bin/env python3
+
+###
+# Notifications center
+# Delivery API
+###
+
+from flask import Flask
+
+
+app = Flask(__name__)
+endpoint = "/delivery"
+
+
+@app.route(endpoint + "/status")
+def status():
+ '''Determine if the application returns a 200 on GET request.'''
+ return "ALIVE"
+
+
+if __name__ == "__main__":
+ app.run(host="0.0.0.0")
diff --git a/requirements.txt b/requirements.txt
new file mode 100644
--- /dev/null
+++ b/requirements.txt
@@ -0,0 +1,7 @@
+click==6.7
+Flask==0.12.2
+itsdangerous==0.24
+Jinja2==2.9.6
+MarkupSafe==1.0
+sqlite3==0.0.0
+Werkzeug==0.12.2
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 19, 12:48 (20 h, 29 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2250701
Default Alt Text
D986.diff (689 B)
Attached To
Mode
D986: Initialize Flask application
Attached
Detach File
Event Timeline
Log In to Comment