aboutsummaryrefslogtreecommitdiffstats
path: root/pysite/views/api/index.py
blob: e2bd8fe0f15537ff2e024986971ebf1a307f752c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
# coding=utf-8
from pysite.base_route import APIView
from pysite.constants import ErrorCodes


class IndexView(APIView):
    path = "/"
    name = "api.index"

    def get(self):
        return self.error(ErrorCodes.unknown_route)