diff options
author | 2018-02-09 13:42:53 +0000 | |
---|---|---|
committer | 2018-02-09 13:42:53 +0000 | |
commit | 1b98d41e3e2504550ddc18fc835c602658ab20aa (patch) | |
tree | 0ce5959ce441725bcccae3519b44d493c1a5cc32 /pysite/base_route.py | |
parent | Guess who forgot to run snekchek! (diff) |
APIView should inherit RouteView
Diffstat (limited to 'pysite/base_route.py')
-rw-r--r-- | pysite/base_route.py | 2 |
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, |