aboutsummaryrefslogtreecommitdiffstats
path: root/pysite/views
diff options
context:
space:
mode:
authorGravatar Gareth Coles <[email protected]>2018-02-06 11:47:19 +0000
committerGravatar Gareth Coles <[email protected]>2018-02-06 11:47:19 +0000
commit5c6bf7d2abee96e6baf6c2e851db503925fcc72a (patch)
treef9230655306c69e7578a344c3b12b162c6c79ed9 /pysite/views
parentRevert "Mart's Missing Files 2: Electric Boogaloo" (diff)
Template rendering
Diffstat (limited to 'pysite/views')
-rw-r--r--pysite/views/healthcheck.py4
-rw-r--r--pysite/views/index.py6
-rw-r--r--pysite/views/invite.py4
3 files changed, 7 insertions, 7 deletions
diff --git a/pysite/views/healthcheck.py b/pysite/views/healthcheck.py
index 660c8a96..088bc7b3 100644
--- a/pysite/views/healthcheck.py
+++ b/pysite/views/healthcheck.py
@@ -1,13 +1,13 @@
# coding=utf-8
from flask import jsonify
-from pysite.base_route import BaseView
+from pysite.base_route import RouteView
__author__ = "Gareth Coles"
-class IndexView(BaseView):
+class IndexView(RouteView):
path = "/healthcheck"
name = "healthcheck"
diff --git a/pysite/views/index.py b/pysite/views/index.py
index 2e779003..040332cc 100644
--- a/pysite/views/index.py
+++ b/pysite/views/index.py
@@ -1,12 +1,12 @@
# coding=utf-8
-from pysite.base_route import BaseView
+from pysite.base_route import RouteView
__author__ = "Gareth Coles"
-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 d035fc99..07ddc830 100644
--- a/pysite/views/invite.py
+++ b/pysite/views/invite.py
@@ -1,13 +1,13 @@
# coding=utf-8
from flask import redirect
-from pysite.base_route import BaseView
+from pysite.base_route import RouteView
__author__ = "Gareth Coles"
-class InviteView(BaseView):
+class InviteView(RouteView):
path = "/invite"
name = "invite"