diff options
Diffstat (limited to 'pysite/views/api')
| -rw-r--r-- | pysite/views/api/index.py | 11 | 
1 files changed, 11 insertions, 0 deletions
diff --git a/pysite/views/api/index.py b/pysite/views/api/index.py new file mode 100644 index 00000000..61fbece9 --- /dev/null +++ b/pysite/views/api/index.py @@ -0,0 +1,11 @@ +# coding=utf-8 +from pysite.base_route import APIView +from pysite.constants import ErrorCodes + + +class IndexView(APIView): +    path = "/" +    name = "index" + +    def get(self): +        return self.error(ErrorCodes.unknown_route)  |