refactor: remove user API methods parameter
`methods` defaults to ["GET"] if not specified. There is no need to
explicitly set this in the action.
@@ -19,7 +19,7 @@ class UserViewSet(RetrieveModelMixin, ListModelMixin, UpdateModelMixin, GenericV
assert isinstance(self.request.user.id, int)
return self.queryset.filter(id=self.request.user.id)
- @action(detail=False, methods=["GET"])
+ @action(detail=False)
def me(self, request):
serializer = UserSerializer(request.user, context={"request": request})
return Response(status=status.HTTP_200_OK, data=serializer.data)
