How do I use decorators in CBV

this my baseview

class BaseView:
    this class base view

    def __init__(self, **kwargs):
        for key, value in kwargs.items():
            setattr(self, key, value)

    def as_view(cls, *class_args, **class_kwargs):
        async def view(request, *args, **kwargs):
            self = view.base_class(*class_args, **class_kwargs)

            self.request = request
            self.args = args
            self.kwargs = kwargs
            return await self.dispatch(request, *args, **kwargs)

        view.base_class = cls
        view.__module__ = cls.__module__
        view.__name__ = cls.__name__
        return view

I need to add a decorator to the APIView’s get method. How do I do that

class APIView(BaseView):
    def get(self):
        return json({'msg':'ok'})

Hello, please make sure you’re properly inheriting from the HTTPMethodView class, and review the documentation on class-based views.