aboutsummaryrefslogtreecommitdiffstats
path: root/pysite/views
diff options
context:
space:
mode:
Diffstat (limited to 'pysite/views')
-rw-r--r--pysite/views/healthcheck.py7
-rw-r--r--pysite/views/index.py6
-rw-r--r--pysite/views/invite.py7
3 files changed, 13 insertions, 7 deletions
diff --git a/pysite/views/healthcheck.py b/pysite/views/healthcheck.py
index 3931100c..088bc7b3 100644
--- a/pysite/views/healthcheck.py
+++ b/pysite/views/healthcheck.py
@@ -1,10 +1,13 @@
# coding=utf-8
from flask import jsonify
-from pysite.base_route import BaseView
+from pysite.base_route import RouteView
-class IndexView(BaseView):
+__author__ = "Gareth Coles"
+
+
+class IndexView(RouteView):
path = "/healthcheck"
name = "healthcheck"
diff --git a/pysite/views/index.py b/pysite/views/index.py
index 48a98fac..0c2d1578 100644
--- a/pysite/views/index.py
+++ b/pysite/views/index.py
@@ -1,10 +1,10 @@
# coding=utf-8
-from pysite.base_route import BaseView
+from pysite.base_route import RouteView
-class IndexView(BaseView):
+class IndexView(RouteView):
path = "/"
name = "index"
def get(self):
- return "Coming soon:tm:"
+ return self.render("index.html")
diff --git a/pysite/views/invite.py b/pysite/views/invite.py
index 65cd75a5..07ddc830 100644
--- a/pysite/views/invite.py
+++ b/pysite/views/invite.py
@@ -1,10 +1,13 @@
# coding=utf-8
from flask import redirect
-from pysite.base_route import BaseView
+from pysite.base_route import RouteView
-class InviteView(BaseView):
+__author__ = "Gareth Coles"
+
+
+class InviteView(RouteView):
path = "/invite"
name = "invite"