aboutsummaryrefslogtreecommitdiffstats
path: root/pysite/base_route.py
diff options
context:
space:
mode:
authorGravatar Gareth Coles <[email protected]>2018-02-09 13:42:53 +0000
committerGravatar Gareth Coles <[email protected]>2018-02-09 13:42:53 +0000
commit1b98d41e3e2504550ddc18fc835c602658ab20aa (patch)
tree0ce5959ce441725bcccae3519b44d493c1a5cc32 /pysite/base_route.py
parentGuess who forgot to run snekchek! (diff)
APIView should inherit RouteView
Diffstat (limited to 'pysite/base_route.py')
-rw-r--r--pysite/base_route.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pysite/base_route.py b/pysite/base_route.py
index 65007fcb..04694186 100644
--- a/pysite/base_route.py
+++ b/pysite/base_route.py
@@ -26,7 +26,7 @@ class RouteView(BaseView):
blueprint.add_url_rule(cls.path, view_func=cls.as_view(cls.name))
-class APIView(BaseView):
+class APIView(RouteView):
def error(self, error_code: ErrorCodes):
data = {
"error_code": error_code.value,