changeset 14:8ffc1b81b846

Added a stub party trace view
author Michal Kawalec <mkawalec@lavabit.com>
date Sun, 02 Jun 2013 10:40:57 +0200
parents df4ae57c7e2d
children 70e301b2e272
files server/__init__.py server/api.py
diffstat 2 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/server/__init__.py	Sun Jun 02 09:37:13 2013 +0200
+++ b/server/__init__.py	Sun Jun 02 10:40:57 2013 +0200
@@ -10,6 +10,8 @@
 if 'PARTYBUDDY_SETTINGS' in os.environ:
     app.config.from_envvar('PARTYBUDDY_SETTINGS')
 
+import api
+
 @app.route('/')
 def home():
     return '42'
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/server/api.py	Sun Jun 02 10:40:57 2013 +0200
@@ -0,0 +1,9 @@
+from . import app
+from flask.ext.classy import FlaskView
+
+
+class PartyTraceView(FlaskView):
+    def index(self):
+        return '42'
+
+PartyTraceView.register(app)